Thanks Your reply,

1- I think that in this case I should expect one of the following from the data base driver: 1 - Generate an exception (as the driver will not support conversion of data type from unicode to ascii) 2- The driver should convert the unicode data field to local ASCII data type and save the data field in ASCII mode as MSSQL do.

2- We have already discussed in the past on the UCS2/UCS4 use of python and MAXdb should I expect now that UCS4 would work properly under SUSE 9.3 (as in the past it was impossible and I was obliged to use a self compiled python in UCS2 especialy for this problem)

I am using the lastest python driver in the brach 7.5.0.30
is there any changes in the branch 7.6.00.12 that we should know?

3- And last how we can determine the diffrence between python drivers version as there is no what's new or what
has been bug freed?.


Thanks and best regards
Djebran Lezzoum

Dittmar, Daniel wrote:

python application crash with:
[segmentation fault]
after insert of Unicode data field in a field type defined as ASCII

1. Did the string contained only ASCII characters (so the conversion to
ASCII should succeed) or did the string contained real Unicode
characters (so that a conversion exception is to be expected)

2. Does your Python uses UCS2 or UCS4 internally? (check 'import sys',
sys.maxunicode, 65535 => UCS2, 1114111 => UCS4) If it is UCS4, please
try the latest driver at
http://dev.mysql.com/downloads/maxdb/7.6.00.html#Python, as support for
UCS4 has been added to that release.

Daniel Dittmar


Reply via email to