1
0
mirror of https://github.com/MariaDB/server.git synced 2025-06-13 13:01:51 +03:00

Merge mysql.com:/home/hf/work/25097/my50-25097

into  mysql.com:/home/hf/work/25097/my51-25097
This commit is contained in:
holyfoot/hf@hfmain.(none)
2008-02-27 13:00:59 +04:00
6 changed files with 35 additions and 17 deletions

View File

@ -1500,7 +1500,7 @@ my_ulonglong STDCALL mysql_insert_id(MYSQL *mysql)
const char *STDCALL mysql_sqlstate(MYSQL *mysql)
{
return mysql->net.sqlstate;
return mysql ? mysql->net.sqlstate : cant_connect_sqlstate;
}
uint STDCALL mysql_warning_count(MYSQL *mysql)