summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy13
1 files changed, 11 insertions, 2 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 8b3cdda5d9e..45f0236d0e8 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -7387,8 +7387,8 @@ lock:
{
Lex->sql_command=SQLCOM_LOCK_TABLES;
}
- table_lock_list
- {}
+ table_lock_list lock_engine_opt
+ {}
;
table_or_tables:
@@ -7414,6 +7414,15 @@ lock_option:
| READ_SYM LOCAL_SYM { $$= TL_READ; }
;
+lock_engine_opt:
+ /* empty */
+ | WHERE
+ {
+ Lex->sql_command=SQLCOM_LOCK_TABLES_TRANSACTIONAL;
+ }
+ ENGINE_SYM opt_equal storage_engines
+ ;
+
unlock:
UNLOCK_SYM table_or_tables { Lex->sql_command=SQLCOM_UNLOCK_TABLES; }
;