Commit a1b0997d authored by Sergei Golubchik's avatar Sergei Golubchik Committed by Oleksandr Byelkin

windows

parent bc82b6c0
...@@ -103,7 +103,7 @@ static int create_table(MYSQL *mysql) ...@@ -103,7 +103,7 @@ static int create_table(MYSQL *mysql)
static int run_query_with_table_creation(MYSQL *mysql, const char *query, static int run_query_with_table_creation(MYSQL *mysql, const char *query,
size_t len) size_t len)
{ {
if (mysql_real_query(mysql, query, len)) if (mysql_real_query(mysql, query, (unsigned long) len))
{ {
unsigned int rc= mysql_errno(mysql); unsigned int rc= mysql_errno(mysql);
if (rc != ER_NO_SUCH_TABLE) if (rc != ER_NO_SUCH_TABLE)
...@@ -115,7 +115,7 @@ static int run_query_with_table_creation(MYSQL *mysql, const char *query, ...@@ -115,7 +115,7 @@ static int run_query_with_table_creation(MYSQL *mysql, const char *query,
} }
if (create_table(mysql)) if (create_table(mysql))
return 1; return 1;
if (mysql_real_query(mysql, query, len)) if (mysql_real_query(mysql, query, (unsigned long) len))
{ {
report_sql_error(mysql); report_sql_error(mysql);
return 1; return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment