Skip to content
Permalink
Browse files
A cleanup for MDEV-12846 sql_mode=ORACLE: using Oracle-style placehol…
…ders 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.
  • Loading branch information
abarkov committed Nov 22, 2017
1 parent 366bb16 commit a18f600
Showing 1 changed file with 5 additions and 0 deletions.
@@ -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 #

# When running with --ps, the below queries return
# CR_PARAMS_NOT_BOUND instead of ER_PARSE_ERROR

--disable_ps_protocol
--error ER_PARSE_ERROR
SELECT ? FROM DUAL;
--error ER_PARSE_ERROR
@@ -283,3 +287,4 @@ SELECT 1+? FROM DUAL;
SELECT 1+:a FROM DUAL;
--error ER_PARSE_ERROR
SELECT 1+:1 FROM DUAL;
--enable_ps_protocol

0 comments on commit a18f600

Please sign in to comment.