Commit a18f6009 authored by Alexander Barkov's avatar Alexander Barkov

A cleanup for MDEV-12846 sql_mode=ORACLE: using Oracle-style placeholders in...

A cleanup for MDEV-12846 sql_mode=ORACLE: using Oracle-style placeholders in direct query execution makes the server crash

Fixing a test failure in "mtr --ps compat/oracle.ps" caused by "SELECT ?"
returning different errors:
- CR_PARAMS_NOT_BOUND in prepared execution
- ER_PARSE_ERROR in direct execution
Disabling PS protocol for this test chunk.
parent 366bb162
...@@ -270,6 +270,10 @@ DROP PROCEDURE p1; ...@@ -270,6 +270,10 @@ DROP PROCEDURE p1;
--echo # MDEV-12846 sql_mode=ORACLE: using Oracle-style placeholders in direct query execution makes the server crash --echo # MDEV-12846 sql_mode=ORACLE: using Oracle-style placeholders in direct query execution makes the server crash
--echo # --echo #
# When running with --ps, the below queries return
# CR_PARAMS_NOT_BOUND instead of ER_PARSE_ERROR
--disable_ps_protocol
--error ER_PARSE_ERROR --error ER_PARSE_ERROR
SELECT ? FROM DUAL; SELECT ? FROM DUAL;
--error ER_PARSE_ERROR --error ER_PARSE_ERROR
...@@ -283,3 +287,4 @@ SELECT 1+? FROM DUAL; ...@@ -283,3 +287,4 @@ SELECT 1+? FROM DUAL;
SELECT 1+:a FROM DUAL; SELECT 1+:a FROM DUAL;
--error ER_PARSE_ERROR --error ER_PARSE_ERROR
SELECT 1+:1 FROM DUAL; SELECT 1+:1 FROM DUAL;
--enable_ps_protocol
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment