summaryrefslogtreecommitdiff
path: root/sql/item_uniq.cc
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2005-09-13 17:16:12 +0200
committerunknown <pem@mysql.com>2005-09-13 17:16:12 +0200
commit065a93773ede926d80a8f2dc772e43878304bce3 (patch)
tree0ea49f9919a82483665f1c90efb02d4d4c083545 /sql/item_uniq.cc
parentb5e15568aafb4f8491b6ae5e825cc4f7ca252adc (diff)
downloadmariadb-git-065a93773ede926d80a8f2dc772e43878304bce3.tar.gz
Fixed BUG#12712: SET AUTOCOMMIT should fail within SP/functions/triggers
Second version after review. Allow 'set autocommit' in procedures, but not functions or triggers. Can return error in run-time (when a function calls a procedure). mysql-test/r/sp-error.result: New test case for BUG#12712. mysql-test/t/sp-error.test: New test case for BUG#12712. sql/set_var.cc: Made sys_autocommit external, to allow testing in sql_yacc.yy. sql/set_var.h: Made sys_autocommit external, to allow testing in sql_yacc.yy. sql/share/errmsg.txt: New error message for disallowing the setting of autocommit in stored functions and triggers. sql/sp_head.h: New flag: has 'set autocommit', and testing for this in is_not_allowed_in_function(). sql/sql_yacc.yy: Disallow setting AUTOCOMMIT in stored function and triggers.
Diffstat (limited to 'sql/item_uniq.cc')
0 files changed, 0 insertions, 0 deletions