Closed GoogleCodeExporter closed 9 years ago
Issue 78 has been merged into this issue.
Original comment by rahul.pr...@in.ibm.com
on 28 Jul 2011 at 10:09
This is happening due to you have send out a string object which contains some
non ASCII characters, and internally we called PyUnicode_FromObject() API to
get an Unicode object(from both string and Unicode object) but this API return
NULL because string object has some non ASCII characters.
Segmentation fault is happening through PyUnicode_AsUnicode() API because we
are passing Unicode object which we got by PyUnicode_FromObject() but in your
case it was NULL.
For the text which contains non ASCII characters must be Unicode by adding
prefix u'...' or by encoding it by encode() function.
I will apply the check which you have suggested through issue-78 so, it will
give some relevant Error message instead of segmentation fault.
p.s.
Please not open more than one issue for same kind of problem.
Original comment by rahul.pr...@in.ibm.com
on 28 Jul 2011 at 11:05
Fixed in ibm_db-1.0.5
Original comment by rahul.pr...@in.ibm.com
on 20 Jul 2012 at 6:52
Original issue reported on code.google.com by
D.V.Selitsky@gmail.com
on 25 Jul 2011 at 3:54