Skip to content

Commit 5caeeb0

Browse files
committed
Fix build issue with MariaDB related to mysql_real_escape_string_quote()
Closes #462
1 parent 0325e99 commit 5caeeb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dbdimp.c

+4
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,11 @@ static char *parse_params(
766766
if (!is_num)
767767
{
768768
*ptr++ = '\'';
769+
#if (MYSQL_VERSION_ID >= 50704) && !defined(MARIADB_BASE_VERSION)
769770
ptr += mysql_real_escape_string_quote(sock, ptr, valbuf, vallen, '\'');
771+
#else
772+
ptr += mysql_real_escape_string(sock, ptr, valbuf, vallen);
773+
#endif
770774
*ptr++ = '\'';
771775
}
772776
else

0 commit comments

Comments
 (0)