mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
Intermediate commit of client library (cleanups + fixes of 3 items from
flaws list) TODO: * verify that no sequence of API calls produces SIGSEGV. That is, verify that mysql_stmt_init -> mysql_stmt_fetch is OK, or mysql_stmt_prepare -> mysql_stmt_fetch_column is OK and sets meaningful error. * remove alloc_stmt_fields call * revise stmt->state codes and statement states. * there are other items in prepared statements 'to fix' document. Done: - cleanups and comments - revision of prepared statement error codes. - mysql_stmt_prepare is now can always be called (that is, you can reprepare a statement) - new implementation of mysql_stmt_close and fetch cancellation
This commit is contained in:
@@ -67,7 +67,7 @@ extern const char *client_errors[]; /* Error messages */
|
||||
/* new 4.1 error codes */
|
||||
#define CR_NULL_POINTER 2028
|
||||
#define CR_NO_PREPARE_STMT 2029
|
||||
#define CR_NOT_ALL_PARAMS_BOUND 2030
|
||||
#define CR_PARAMS_NOT_BOUND 2030
|
||||
#define CR_DATA_TRUNCATED 2031
|
||||
#define CR_NO_PARAMETERS_EXISTS 2032
|
||||
#define CR_INVALID_PARAMETER_NO 2033
|
||||
@@ -87,3 +87,5 @@ extern const char *client_errors[]; /* Error messages */
|
||||
#define CR_CONN_UNKNOW_PROTOCOL 2046
|
||||
#define CR_INVALID_CONN_HANDLE 2047
|
||||
#define CR_SECURE_AUTH 2048
|
||||
#define CR_FETCH_CANCELLED 2049
|
||||
#define CR_NO_DATA 2050
|
||||
|
Reference in New Issue
Block a user