diff options
author | kostja@bodhi.(none) <> | 2008-05-20 20:36:26 +0400 |
---|---|---|
committer | kostja@bodhi.(none) <> | 2008-05-20 20:36:26 +0400 |
commit | 6ae3bca94ed387b58d768aaf3f686a1353a906dd (patch) | |
tree | d253d230a92a5e5b0cd4824c58c4baef794fb3b0 /include/errmsg.h | |
parent | 2c0ce2a832be070b27d88a4815e1c555a8f4e8f5 (diff) | |
download | mariadb-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 'include/errmsg.h')
-rw-r--r-- | include/errmsg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/errmsg.h b/include/errmsg.h index e7b59ca8bd7..a6d8c770de8 100644 --- a/include/errmsg.h +++ b/include/errmsg.h @@ -96,6 +96,7 @@ extern const char *client_errors[]; /* Error messages */ #define CR_NOT_IMPLEMENTED 2054 #define CR_SERVER_LOST_EXTENDED 2055 #define CR_STMT_CLOSED 2056 -#define CR_ERROR_LAST /*Copy last error nr:*/ 2056 +#define CR_NEW_STMT_METADATA 2057 +#define CR_ERROR_LAST /*Copy last error nr:*/ 2057 /* Add error numbers before CR_ERROR_LAST and change it accordingly. */ |