waliwali / ibm-db

Automatically exported from code.google.com/p/ibm-db
0 stars 0 forks source link

Syntax errors in _get_exception() #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(From the 0.2.7 source)

In the _get_exception() method, both "warning_error_tuple" and
"integrity_error_tuple" are not tuples. They are strings. 

In Python, ("x",) is a one-tuple, ("x") is just a parenthesised string and
is parsed as a string. Since IntegrityError is one of the errors affected
here, this is quite serious, as constraint violations will not be correctly
reported.

Original issue reported on code.google.com by malc...@pointy-stick.com on 21 Mar 2008 at 7:57

GoogleCodeExporter commented 9 years ago
In case it wasn't clear, this is in ibm_db_dbi.py.

Original comment by malc...@pointy-stick.com on 21 Mar 2008 at 8:12

GoogleCodeExporter commented 9 years ago

Original comment by apiti...@ca.ibm.com on 24 Mar 2008 at 1:41

GoogleCodeExporter commented 9 years ago
Internal defect #156925

Original comment by apiti...@ca.ibm.com on 24 Mar 2008 at 6:20

GoogleCodeExporter commented 9 years ago
Fixed in ibm_db-0.2.8

Original comment by apiti...@ca.ibm.com on 28 Mar 2008 at 10:11

GoogleCodeExporter commented 9 years ago

Original comment by abhigyan...@in.ibm.com on 28 Apr 2008 at 2:32