1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

removed definition of SQLSTATE_UNKNOWN (10.2 integration)

This commit is contained in:
Georg Richter
2016-11-17 16:04:33 +01:00
parent e5384ddb3a
commit 3e624e50df
4 changed files with 3 additions and 3 deletions

View File

@@ -96,6 +96,4 @@ extern const char *mariadb_client_errors[]; /* Error messages */
#define CR_FILE_NOT_FOUND 5004 #define CR_FILE_NOT_FOUND 5004
#define CR_FILE_READ 5005 #define CR_FILE_READ 5005
#define SQLSTATE_UNKNOWN "HY000"
#endif #endif

View File

@@ -130,6 +130,7 @@ extern unsigned int mariadb_deinitialize_ssl;
/* For mysql_async.c */ /* For mysql_async.c */
#define set_mariadb_error(A,B,C) SET_CLIENT_ERROR((A),(B),(C),0) #define set_mariadb_error(A,B,C) SET_CLIENT_ERROR((A),(B),(C),0)
extern const char *SQLSTATE_UNKNOWN;
#define unknown_sqlstate SQLSTATE_UNKNOWN #define unknown_sqlstate SQLSTATE_UNKNOWN
#define CLEAR_CLIENT_ERROR(a) \ #define CLEAR_CLIENT_ERROR(a) \

View File

@@ -23,6 +23,8 @@
#include "errmsg.h" #include "errmsg.h"
#include <stdarg.h> #include <stdarg.h>
const char *SQLSTATE_UNKNOWN= "HY000";
#ifdef GERMAN #ifdef GERMAN
const char *client_errors[]= const char *client_errors[]=
{ {

View File

@@ -198,7 +198,6 @@ static int bulk3(MYSQL *mysql)
MYSQL_STMT *stmt= mysql_stmt_init(mysql); MYSQL_STMT *stmt= mysql_stmt_init(mysql);
size_t row_size= sizeof(struct st_bulk3); size_t row_size= sizeof(struct st_bulk3);
int array_size= 3; int array_size= 3;
int i;
if (!bulk_enabled) if (!bulk_enabled)
return SKIP; return SKIP;