You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: libmysql/errmsg.c
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,7 @@ const char *client_errors[]=
85
85
"Lost connection to MySQL server at '%s', system error: %d",
86
86
"Statement closed indirectly because of a preceeding %s() call",
87
87
"The number of columns in the result set differs from the number of bound buffers. You must reset the statement, rebind the result set columns, and execute the statement again",
88
+
"This handle is already connected. Use a separate handle for each connection."
88
89
""
89
90
};
90
91
@@ -151,6 +152,7 @@ const char *client_errors[]=
151
152
"Lost connection to MySQL server at '%s', system error: %d",
152
153
"Statement closed indirectly because of a preceeding %s() call",
153
154
"The number of columns in the result set differs from the number of bound buffers. You must reset the statement, rebind the result set columns, and execute the statement again",
155
+
"This handle is already connected. Use a separate handle for each connection."
154
156
""
155
157
};
156
158
@@ -215,6 +217,7 @@ const char *client_errors[]=
215
217
"Lost connection to MySQL server at '%s', system error: %d",
216
218
"Statement closed indirectly because of a preceeding %s() call",
217
219
"The number of columns in the result set differs from the number of bound buffers. You must reset the statement, rebind the result set columns, and execute the statement again",
220
+
"This handle is already connected. Use a separate handle for each connection."
0 commit comments