summaryrefslogtreecommitdiff
path: root/sql/mini_client.cc
diff options
context:
space:
mode:
authorsasha@mysql.sashanet.com <>2000-11-06 19:39:13 -0700
committersasha@mysql.sashanet.com <>2000-11-06 19:39:13 -0700
commit2b05ed9d026925ea6dcac9ff16b8efb7ea94f473 (patch)
treef165c573e30544964d89e3a5e99c270fef4686b1 /sql/mini_client.cc
parentfddab55df3f6455c6a91f5c9300d58ef34d3165e (diff)
downloadmariadb-git-2b05ed9d026925ea6dcac9ff16b8efb7ea94f473.tar.gz
sql/item_strfunc.cc
fixed coredump in concat_ws sql/item_strfunc.h fixed coredump in concat_ws sql/mini_client.cc added mc_mysql_error() sql/mini_client.h added mc_mysql_errno() sql/mysqlbinlog.cc fixed bug in --postion for local files sql/slave.cc more verbose message on bad net reads sql/sql_repl.cc send errno on error in mysql_binlog_send
Diffstat (limited to 'sql/mini_client.cc')
-rw-r--r--sql/mini_client.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/mini_client.cc b/sql/mini_client.cc
index 34f5c0a6ccd..3520062e052 100644
--- a/sql/mini_client.cc
+++ b/sql/mini_client.cc
@@ -371,6 +371,11 @@ char * STDCALL mc_mysql_error(MYSQL *mysql)
return (mysql)->net.last_error;
}
+int STDCALL mc_mysql_errno(MYSQL *mysql)
+{
+ return (mysql)->net.last_errno;
+}
+
my_bool STDCALL mc_mysql_reconnect(MYSQL *mysql)
{
MYSQL tmp_mysql;