Hallo,
habe wieder mal ein mehr oder weniger lustiges Problem:
Rahmenbedingungen:
Programmiersprache: C++ (Visual C++ 6 SP6)
Zugriff auf die Datenbank: via ODBC
Betriebssystem: WinXp SP2
Datenbank: IBM DB2 9.5 Workstation Server
Fehlermeldung:
SQLStatus = 07006 -> SQL-Message: = [IBM][CLI Driver] CLI0102E Invalid conversion. SQLSTATE=07006
Auszug IBM Dokumentation:
07006 Conversion not valid The conversion from the data value identified by the ValueType argument to the data type identified by the ParameterType argument is not a meaningful conversion. (For example, conversion from SQL_C_DATE to SQL_DOUBLE.)
Da ich von SQL_C_BIT in SQL_BIT umwandle, gehe ich davon aus das die Datentypen zusammenpassen...
Tipp: Unter MsJet, SQLServer und Oracle bekomme ich keinen Fehler!
Vielleicht hat ja jemand eine Idee?
mfg Wolfgang
habe wieder mal ein mehr oder weniger lustiges Problem:
Rahmenbedingungen:
Programmiersprache: C++ (Visual C++ 6 SP6)
Zugriff auf die Datenbank: via ODBC
Betriebssystem: WinXp SP2
Datenbank: IBM DB2 9.5 Workstation Server
Code:
char var; SQLINTEGER cb; cb=1; SQLBindParameter(hStmt,1,SQL_PARAM_INPUT,SQL_C_BIT,SQL_BIT,1,0,&var,1,&cb);
SQLStatus = 07006 -> SQL-Message: = [IBM][CLI Driver] CLI0102E Invalid conversion. SQLSTATE=07006
Auszug IBM Dokumentation:
07006 Conversion not valid The conversion from the data value identified by the ValueType argument to the data type identified by the ParameterType argument is not a meaningful conversion. (For example, conversion from SQL_C_DATE to SQL_DOUBLE.)
Da ich von SQL_C_BIT in SQL_BIT umwandle, gehe ich davon aus das die Datentypen zusammenpassen...
Tipp: Unter MsJet, SQLServer und Oracle bekomme ich keinen Fehler!
Vielleicht hat ja jemand eine Idee?
mfg Wolfgang
Comment