From b492f09d61f952f3b5709b284a05e91d84332675 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 24 May 2017 13:54:18 +0300 Subject: [PATCH] MXS-1196: Add Oracle tests --- query_classifier/test/CMakeLists.txt | 6 ++++++ query_classifier/test/oracle/sp-security.test | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/query_classifier/test/CMakeLists.txt b/query_classifier/test/CMakeLists.txt index ae0e16df1..de33936fe 100644 --- a/query_classifier/test/CMakeLists.txt +++ b/query_classifier/test/CMakeLists.txt @@ -55,6 +55,12 @@ if (BUILD_QC_MYSQLEMBEDDED) add_test(TestQC_Oracle-sp-cursor-decl compare -C sql_mode=MODE_ORACLE -v 2 ${CMAKE_CURRENT_SOURCE_DIR}/oracle/sp-cursor-decl.test) add_test(TestQC_Oracle-sp-cursor-rowtype compare -C sql_mode=MODE_ORACLE -v 2 ${CMAKE_CURRENT_SOURCE_DIR}/oracle/sp-cursor-rowtype.test) add_test(TestQC_Oracle-sp-cursor compare -C sql_mode=MODE_ORACLE -v 2 ${CMAKE_CURRENT_SOURCE_DIR}/oracle/sp-cursor.test) + add_test(TestQC_Oracle-sp-goto compare -C sql_mode=MODE_ORACLE -v 2 ${CMAKE_CURRENT_SOURCE_DIR}/oracle/sp-goto.test) + add_test(TestQC_Oracle-sp-param_inc compare -C sql_mode=MODE_ORACLE -v 2 ${CMAKE_CURRENT_SOURCE_DIR}/oracle/sp-param.inc) + add_test(TestQC_Oracle-sp-param compare -C sql_mode=MODE_ORACLE -v 2 ${CMAKE_CURRENT_SOURCE_DIR}/oracle/sp-param.test) + add_test(TestQC_Oracle-sp-row compare -C sql_mode=MODE_ORACLE -v 2 ${CMAKE_CURRENT_SOURCE_DIR}/oracle/sp-row.test) + add_test(TestQC_Oracle-sp-row-vs-var_inc compare -C sql_mode=MODE_ORACLE -v 2 ${CMAKE_CURRENT_SOURCE_DIR}/oracle/sp-row-vs-var.inc) + add_test(TestQC_Oracle-sp-security compare -C sql_mode=MODE_ORACLE -v 2 ${CMAKE_CURRENT_SOURCE_DIR}/oracle/sp-security.test) endif() add_subdirectory(canonical_tests) diff --git a/query_classifier/test/oracle/sp-security.test b/query_classifier/test/oracle/sp-security.test index 1732c0b80..8dec93c37 100644 --- a/query_classifier/test/oracle/sp-security.test +++ b/query_classifier/test/oracle/sp-security.test @@ -236,7 +236,8 @@ DROP TABLE t1; connection default; -GRANT SELECT (a) ON db1.t1 TO user1; +# qc_sqlite: GRANT SELECT (a) ON db1.t1 TO user1; +# qc_sqlite: Does not collect database/able names. connection conn1; --echo #