You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Fixed function declaration for mysql_error and mysql_info (const char * instead of char *)
This commit is contained in:
@@ -3291,12 +3291,12 @@ uint STDCALL mysql_errno(MYSQL *mysql)
|
||||
return mysql ? mysql->net.last_errno : 0;
|
||||
}
|
||||
|
||||
char * STDCALL mysql_error(MYSQL *mysql)
|
||||
const char * STDCALL mysql_error(MYSQL *mysql)
|
||||
{
|
||||
return mysql ? (mysql)->net.last_error : (char *)"";
|
||||
}
|
||||
|
||||
char *STDCALL mysql_info(MYSQL *mysql)
|
||||
const char *STDCALL mysql_info(MYSQL *mysql)
|
||||
{
|
||||
return (mysql)->info;
|
||||
}
|
||||
|
Reference in New Issue
Block a user