summaryrefslogtreecommitdiff
path: root/include/errmsg.h
diff options
context:
space:
mode:
authorMagne Mahre <magne.mahre@sun.com>2009-10-09 14:30:54 +0200
committerMagne Mahre <magne.mahre@sun.com>2009-10-09 14:30:54 +0200
commitc9248c642453b827c6631c5b76340db72f2f7236 (patch)
tree8f8dd0cfacbee48a877f1bfaf64adf44dab3767a /include/errmsg.h
parentf0195faf88830fce9515fb148a3bc970fd39c52b (diff)
downloadmariadb-git-c9248c642453b827c6631c5b76340db72f2f7236.tar.gz
Bug #33831 mysql_real_connect() connects again if
given an already connected MYSQL handle mysql_real_connect() did not check whether the MYSQL connection handler was already connected and connected again even if so. Now a CR_ALREADY_CONNECTED error is returned.
Diffstat (limited to 'include/errmsg.h')
-rw-r--r--include/errmsg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/errmsg.h b/include/errmsg.h
index a6d8c770de8..92d70abb9f5 100644
--- a/include/errmsg.h
+++ b/include/errmsg.h
@@ -97,6 +97,7 @@ extern const char *client_errors[]; /* Error messages */
#define CR_SERVER_LOST_EXTENDED 2055
#define CR_STMT_CLOSED 2056
#define CR_NEW_STMT_METADATA 2057
-#define CR_ERROR_LAST /*Copy last error nr:*/ 2057
+#define CR_ALREADY_CONNECTED 2058
+#define CR_ERROR_LAST /*Copy last error nr:*/ 2058
/* Add error numbers before CR_ERROR_LAST and change it accordingly. */