summaryrefslogtreecommitdiff
path: root/libmysql/errmsg.c
diff options
context:
space:
mode:
authorkostja@bodhi.(none) <>2008-05-20 20:36:26 +0400
committerkostja@bodhi.(none) <>2008-05-20 20:36:26 +0400
commit6ae3bca94ed387b58d768aaf3f686a1353a906dd (patch)
treed253d230a92a5e5b0cd4824c58c4baef794fb3b0 /libmysql/errmsg.c
parent2c0ce2a832be070b27d88a4815e1c555a8f4e8f5 (diff)
downloadmariadb-git-6ae3bca94ed387b58d768aaf3f686a1353a906dd.tar.gz
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.
Diffstat (limited to 'libmysql/errmsg.c')
-rw-r--r--libmysql/errmsg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmysql/errmsg.c b/libmysql/errmsg.c
index e7f495d1f43..95ee6862aa8 100644
--- a/libmysql/errmsg.c
+++ b/libmysql/errmsg.c
@@ -84,6 +84,7 @@ const char *client_errors[]=
"This feature is not implemented yet",
"Lost connection to MySQL server at '%s', system error: %d",
"Statement closed indirectly because of a preceeding %s() call",
+ "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",
""
};
@@ -149,6 +150,7 @@ const char *client_errors[]=
"This feature is not implemented yet",
"Lost connection to MySQL server at '%s', system error: %d",
"Statement closed indirectly because of a preceeding %s() call",
+ "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",
""
};
@@ -212,6 +214,7 @@ const char *client_errors[]=
"This feature is not implemented yet",
"Lost connection to MySQL server at '%s', system error: %d",
"Statement closed indirectly because of a preceeding %s() call",
+ "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",
""
};
#endif