Closed GoogleCodeExporter closed 9 years ago
Original comment by jazlee
on 9 Oct 2011 at 12:31
[deleted comment]
Hi jaimy,
The segmentation fault is coming not due to reference value on foreign key, it is coming due to you are trying to insert string values('b1', 'b2') in INTEGER field(col3 field of mytable2 table).
In any case this API should not raise segmentation field. I am investigating
this issue and will update you once i find the solution.
Please let me know if this issue is critical for you and blocking you somewhere.
Original comment by rahul.pr...@in.ibm.com
on 10 Oct 2011 at 8:14
not too critical, I found this when testing the ibm_db_sa with default
sqlalchemy test suite. mainly it was due to improper finalization to drop
tables used on previous tests done by those suite.
Original comment by jazlee
on 11 Oct 2011 at 3:39
Hi Jaimy,
I have investigated the issue and found that segmentation fault cames due to underlined CLI ODBC driver issue.
I have an workaround through which we can avoid the segmentation fault.
If transaction is in autocommit mode than only the segmentation fault is coming so if we remove the autocommit mode during the execution of execute_many() then segmentation fault will not come. You can manage the tansaction manualy to avoid this or use the patch of ibm_db_dbi.py which i have created for this issue.
Download the modified copy ibm_db_dbi.py from attachment and replace the existing working copy of ibm_db_dbi.py with downloaded one.
I have created a defect against the CLI but a customer created defect will resolve more quickly. So, if you have valid DB2 license then please open a PMR to get it resolve more quickly.
please let me know after creating PMR.
Original comment by rahul.pr...@in.ibm.com
on 19 Oct 2011 at 6:42
Attachments:
Sadly, the only valid license we did have was DB2 for iSeries, though they were
still on DB2 family I believe this were out of context of CLI ODBC driver. for
DB2 UDB, I did use the Express edition, mainly for development only, while for
production purpose we use AS/400.
Original comment by jazlee
on 18 Nov 2011 at 1:48
The above patch is now the part of the mainstream ibm_db driver, and have been
released with ibm_db-1.0.6.
The above cli defect is the part DB2 v97fp6 so, it will get release with
DB2v97fp6.
Original comment by rahul.pr...@in.ibm.com
on 25 May 2012 at 7:00
Original issue reported on code.google.com by
jazlee
on 5 Oct 2011 at 4:41