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
Bug#27430 "Crash in subquery code when in PS and table DDL changed after
PREPARE", review fixes:
- make the patch follow the specification of WL#4166 and remove
the new error that was originally introduced.
Now the client never gets an error from reprepare, unless it failed.
I.e. even if the statement at hand returns a completely different
result set, this is not considered a server error.
The C API library, that can not handle this situation, was modified to
return a client error.
Added additional test coverage.
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
@@ -84,6 +84,7 @@ const char *client_errors[]=
84
84
"This feature is not implemented yet",
85
85
"Lost connection to MySQL server at '%s', system error: %d",
86
86
"Statement closed indirectly because of a preceeding %s() call",
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",
87
88
""
88
89
};
89
90
@@ -149,6 +150,7 @@ const char *client_errors[]=
149
150
"This feature is not implemented yet",
150
151
"Lost connection to MySQL server at '%s', system error: %d",
151
152
"Statement closed indirectly because of a preceeding %s() call",
153
+
"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",
152
154
""
153
155
};
154
156
@@ -212,6 +214,7 @@ const char *client_errors[]=
212
214
"This feature is not implemented yet",
213
215
"Lost connection to MySQL server at '%s', system error: %d",
214
216
"Statement closed indirectly because of a preceeding %s() call",
217
+
"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",
0 commit comments