summaryrefslogtreecommitdiff
path: root/sql/sp.h
diff options
context:
space:
mode:
authorunknown <pem@mysql.comhem.se>2005-05-31 18:36:32 +0200
committerunknown <pem@mysql.comhem.se>2005-05-31 18:36:32 +0200
commit3f7b0f708e046d0a5ffe0ef96c1f52471be7b397 (patch)
tree151c51e4a5a263cada0599bd33881110da8caf0b /sql/sp.h
parent190aafb4d9760976b212db51f2f56c41f16cc376 (diff)
downloadmariadb-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sp.h b/sql/sp.h
index 00dd8416c1d..16d79026132 100644
--- a/sql/sp.h
+++ b/sql/sp.h
@@ -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