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;
strcpy(szSqlState, "S1011");
break;
+ case STMT_EXEC_ERROR:
default:
strcpy(szSqlState, "S1000");
// also a general error
*/
}
else {
- self->errornumber = STMT_EXEC_ERROR;
+ self->errornumber = STMT_BAD_ERROR;
self->errormsg = "Error while executing the query";
}
#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 {