To execute an SQL command, my C++ code calls:
SQLPrepare(**handle**, **command text**, SQL _ NTS);
then SQLExecute.
SQLPrepare does fail (returns SQL_ERROR) on the following command:
"CREATE SEQUENCE autoinc_test_id_seq"
with the following error:
ODBC error code: 42000
Native Error code: 2500
Error message:"Syntax error on line 1. Last symbol read was: 'CREATE SEQUENCE'"
whereas with other SQL commands it works just fine (create table, create index, select..) and using another sql console tool I manage to execute the same command without any problem.
Environment information:
Database Version: INGRES Release 9.04 (ingres2006-9.0.4-105-gpl-win-x86)
Client Version: caiiod35.dll 03.50.00.62
ODBC Version: 3.525
OS: Windows XP
Odbc driver configuration:
VNode: (LOCAL)
Type: INGRES
Database: imadb
and the default options after a fresh install.
It looks like I am not the only one with the same symptoms:
[Info-Ingres] Odd error?
Any idea?