summaryrefslogtreecommitdiff
path: root/mysql-test/r/sp-error.result
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 /mysql-test/r/sp-error.result
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 'mysql-test/r/sp-error.result')
-rw-r--r--mysql-test/r/sp-error.result4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/sp-error.result b/mysql-test/r/sp-error.result
index 5eb651e2fca..ccdb46f10d0 100644
--- a/mysql-test/r/sp-error.result
+++ b/mysql-test/r/sp-error.result
@@ -654,4 +654,8 @@ flush tables;
return 5;
end|
ERROR 0A000: FLUSH is not allowed in stored procedures
+create procedure bug9529_90123456789012345678901234567890123456789012345678901234567890()
+begin
+end|
+ERROR 42000: Identifier name 'bug9529_90123456789012345678901234567890123456789012345678901234567890' is too long
drop table t1|