driver v06-40-0007

This commit is contained in:
Byron Nikolaidis 1999-09-03 04:41:45 +00:00
parent 51f62ea45c
commit 19f947e800
3 changed files with 4 additions and 2 deletions

View File

@ -111,7 +111,7 @@ int status;
strcpy(szSqlState, "00000");
// just information that is returned, no error
break;
case STMT_EXEC_ERROR:
case STMT_BAD_ERROR:
strcpy(szSqlState, "08S01");
// communication link failure
break;
@ -195,6 +195,7 @@ int status;
strcpy(szSqlState, "S1011");
break;
case STMT_EXEC_ERROR:
default:
strcpy(szSqlState, "S1000");
// also a general error

View File

@ -875,7 +875,7 @@ QueryInfo qi;
*/
}
else {
self->errornumber = STMT_EXEC_ERROR;
self->errornumber = STMT_BAD_ERROR;
self->errormsg = "Error while executing the query";
}

View File

@ -74,6 +74,7 @@ typedef enum {
#define STMT_VALUE_OUT_OF_RANGE 24
#define STMT_OPERATION_INVALID 25
#define STMT_PROGRAM_TYPE_OUT_OF_RANGE 26
#define STMT_BAD_ERROR 27
/* statement types */
enum {