diff options
author | unknown <pem@mysql.comhem.se> | 2005-05-31 18:36:32 +0200 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2005-05-31 18:36:32 +0200 |
commit | 3f7b0f708e046d0a5ffe0ef96c1f52471be7b397 (patch) | |
tree | 151c51e4a5a263cada0599bd33881110da8caf0b /sql/sp.h | |
parent | 190aafb4d9760976b212db51f2f56c41f16cc376 (diff) | |
download | mariadb-git-3f7b0f708e046d0a5ffe0ef96c1f52471be7b397.tar.gz |
Fixed BUG#9529: Stored Procedures: No Warning on truncation of procedure name
during creation.
Although it returns an error, consistent with the behaviour for other objects.
(Unclear why we would allow the creation of SPs with truncated names.)
mysql-test/r/sp-error.result:
New test case for BUG#9529.
mysql-test/t/sp-error.test:
New test case for BUG#9529.
sql/sp.cc:
Check SP name length on creation (and drop).
sql/sp.h:
New status code for bad (too long) name.
sql/sql_parse.cc:
New status code for bad (too long) name.
Diffstat (limited to 'sql/sp.h')
-rw-r--r-- | sql/sp.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -28,6 +28,7 @@ #define SP_PARSE_ERROR -6 #define SP_INTERNAL_ERROR -7 #define SP_NO_DB_ERROR -8 +#define SP_BAD_IDENTIFIER -9 /* Drop all routines in database 'db' */ int |