Skip to content

Commit a1b0997

Browse files
vuvovasanja-byelkin
authored andcommitted
windows
1 parent bc82b6c commit a1b0997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/password_reuse_check/password_reuse_check.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static int create_table(MYSQL *mysql)
103103
static int run_query_with_table_creation(MYSQL *mysql, const char *query,
104104
size_t len)
105105
{
106-
if (mysql_real_query(mysql, query, len))
106+
if (mysql_real_query(mysql, query, (unsigned long) len))
107107
{
108108
unsigned int rc= mysql_errno(mysql);
109109
if (rc != ER_NO_SUCH_TABLE)
@@ -115,7 +115,7 @@ static int run_query_with_table_creation(MYSQL *mysql, const char *query,
115115
}
116116
if (create_table(mysql))
117117
return 1;
118-
if (mysql_real_query(mysql, query, len))
118+
if (mysql_real_query(mysql, query, (unsigned long) len))
119119
{
120120
report_sql_error(mysql);
121121
return 1;

0 commit comments

Comments
 (0)