Bug in DB

Dankbar Christian christian.dankbar at thomson.net
Thu Aug 9 02:35:10 PDT 2007


Hi,

there is most certainly a bug located in the dbtable.cpp file in the
lines 1955-1988 (of v2.8.4). To reproduce it: it occurs when trying to
use more than one BLOB in a database table.
The return value SQL_NEED_DATA (line 1955) indicates the need for data
for the (first) blob
column. The parameter is then successfully stored (line 1968,
SQLPutData()).
Then, in line 1978, it is doublechecked whether or not the need for data
is now
satisfied or not, using SQLParamData(). But this function now returns
the
address for the NEXT blob (blob2) that ALSO claims a need for more data
(returns
SQL_NEED_DATA).
This is a bug, because the programmer did not think about the
fact that, at this point, there might be several columns that need more
data. A
bugfix would be appropriate here.

Greetings,
Christian





Deutsche Thomson OHG
Software and Technology Solutions - STS
Dipl.-Ing. Christian Dankbar M.Sc.
R&D Engineer
Berliner Platz 6 - 8
D-45127 Essen, Germany
Tel: +49 (201) 43 752 -71
Fax: +49 (201) 43 752 -77
christian.dankbar at thomson.net





More information about the wx-dev mailing list