ER_PARSE_ERROR -> ProgrammingError;

#ifdef around some recent error types
This commit is contained in:
adustman
2001-07-29 03:08:11 +00:00
parent d5053c60e2
commit 750fea04d3

View File

@ -107,6 +107,7 @@ _mysql_Exception(_mysql_ConnectionObject *c)
case CR_COMMANDS_OUT_OF_SYNC: case CR_COMMANDS_OUT_OF_SYNC:
case ER_DB_CREATE_EXISTS: case ER_DB_CREATE_EXISTS:
case ER_SYNTAX_ERROR: case ER_SYNTAX_ERROR:
case ER_PARSE_ERROR:
case ER_NO_SUCH_TABLE: case ER_NO_SUCH_TABLE:
case ER_WRONG_DB_NAME: case ER_WRONG_DB_NAME:
case ER_WRONG_TABLE_NAME: case ER_WRONG_TABLE_NAME:
@ -120,8 +121,12 @@ _mysql_Exception(_mysql_ConnectionObject *c)
e = _mysql_ProgrammingError; e = _mysql_ProgrammingError;
break; break;
case ER_DUP_ENTRY: case ER_DUP_ENTRY:
#ifdef ER_DUP_UNIQUE
case ER_DUP_UNIQUE: case ER_DUP_UNIQUE:
#endif
#ifdef ER_PRIMARY_CANT_HAVE_NULL
case ER_PRIMARY_CANT_HAVE_NULL: case ER_PRIMARY_CANT_HAVE_NULL:
#endif
e = _mysql_IntegrityError; e = _mysql_IntegrityError;
break; break;
#ifdef ER_WARNING_NOT_COMPLETE_ROLLBACK #ifdef ER_WARNING_NOT_COMPLETE_ROLLBACK