Commit 19f947e8 authored by Byron Nikolaidis's avatar Byron Nikolaidis

driver v06-40-0007

parent 51f62ea4
...@@ -111,7 +111,7 @@ int status; ...@@ -111,7 +111,7 @@ int status;
strcpy(szSqlState, "00000"); strcpy(szSqlState, "00000");
// just information that is returned, no error // just information that is returned, no error
break; break;
case STMT_EXEC_ERROR: case STMT_BAD_ERROR:
strcpy(szSqlState, "08S01"); strcpy(szSqlState, "08S01");
// communication link failure // communication link failure
break; break;
...@@ -195,6 +195,7 @@ int status; ...@@ -195,6 +195,7 @@ int status;
strcpy(szSqlState, "S1011"); strcpy(szSqlState, "S1011");
break; break;
case STMT_EXEC_ERROR:
default: default:
strcpy(szSqlState, "S1000"); strcpy(szSqlState, "S1000");
// also a general error // also a general error
......
...@@ -875,7 +875,7 @@ QueryInfo qi; ...@@ -875,7 +875,7 @@ QueryInfo qi;
*/ */
} }
else { else {
self->errornumber = STMT_EXEC_ERROR; self->errornumber = STMT_BAD_ERROR;
self->errormsg = "Error while executing the query"; self->errormsg = "Error while executing the query";
} }
......
...@@ -74,6 +74,7 @@ typedef enum { ...@@ -74,6 +74,7 @@ typedef enum {
#define STMT_VALUE_OUT_OF_RANGE 24 #define STMT_VALUE_OUT_OF_RANGE 24
#define STMT_OPERATION_INVALID 25 #define STMT_OPERATION_INVALID 25
#define STMT_PROGRAM_TYPE_OUT_OF_RANGE 26 #define STMT_PROGRAM_TYPE_OUT_OF_RANGE 26
#define STMT_BAD_ERROR 27
/* statement types */ /* statement types */
enum { enum {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment