I just receive an error during my CLI ODBC insert statement:
INSERT INTO (.....) VALUES (?, ?, ?, TIMESTAMP( CAST(? AS
VARCHAR(10)),'00:00:00'), ?, ?, ?, ?)";
the ? in the CAST( ) Statement is represented by:
char *go03_btag="10.10.2006";
SQLCODE = -180, SQLSTATE = 22008
MESSAGE: [unixODBC][IBM][CLI Driver][DB2/LINUX] SQL0180N The syntax
of the string representation of a datetime value is incorrect.
SQLSTATE=22007
anyone any idea?
thanks,
Klaus