Modified:
myodbc3/error.c
myodbc3/error.h
Log:
Jims patch...
there is a value missing from the myodbc_errid enum, so there's an
off-by-one problem with most of the mapping to error messages.
07001 also appears to have the wrong SQLSTATE string. maybe it was
intentional, but that seems unlikely.
Modified: myodbc3/error.c
===================================================================
--- myodbc3/error.c 2006-08-26 02:30:39 UTC (rev 65)
+++ myodbc3/error.c 2006-08-26 02:39:03 UTC (rev 66)
@@ -60,7 +60,7 @@
{"01S04","More than one row updated/deleted",1},
{"01S06","Attempt to fetch before the result set returned the first rowset",
1},
- {"07002","SQLBindParameter not used for all parameters",-1},
+ {"07001","SQLBindParameter not used for all parameters",-1},
{"07005","Prepared statement not a cursor-specification",-1},
{"07006","Restricted data type attribute violation",-1},
{"07009","Invalid descriptor index",-1},
Modified: myodbc3/error.h
===================================================================
--- myodbc3/error.h 2006-08-26 02:30:39 UTC (rev 65)
+++ myodbc3/error.h 2006-08-26 02:39:03 UTC (rev 66)
@@ -86,6 +86,7 @@
MYERR_25000,
MYERR_25S01,
MYERR_34000,
+ MYERR_HYT00,
MYERR_S1000,
MYERR_S1001,
MYERR_S1002,
| Thread |
|---|
| • Connector/ODBC 3.51 commit: r66 - myodbc3 | pharvey | 26 Aug |