diff options
author | unknown <hf@deer.(none)> | 2004-05-17 12:05:57 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2004-05-17 12:05:57 +0500 |
commit | afe09e48e0471e989f01b4fe4125d2fd91db2ab8 (patch) | |
tree | f862e98f96e4688390bfe532bbb2f31e1f8ae2da /libmysqld/libmysqld.c | |
parent | 8ef62cc1ef3e2b16795fa5fbbc45bcdf422f344c (diff) | |
download | mariadb-git-afe09e48e0471e989f01b4fe4125d2fd91db2ab8.tar.gz |
Proposed fix for #3744 (embedded server, wrong error message if database is
missing)
libmysqld/embedded_priv.h:
embedded_get_error interface added
libmysqld/lib_sql.cc:
embedded_get_error implementation/using added
libmysqld/libmysqld.c:
embedded_get_error call added
Diffstat (limited to 'libmysqld/libmysqld.c')
-rw-r--r-- | libmysqld/libmysqld.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmysqld/libmysqld.c b/libmysqld/libmysqld.c index 95f745aef5f..db9e828369d 100644 --- a/libmysqld/libmysqld.c +++ b/libmysqld/libmysqld.c @@ -232,6 +232,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user, DBUG_RETURN(mysql); error: + embedded_get_error(mysql); DBUG_PRINT("error",("message: %u (%s)", mysql->net.last_errno, mysql->net.last_error)); { |