From 137cd3218303c6ee03cc1783eebcb65da8529af6 Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Thu, 15 Feb 2024 16:50:42 +0100 Subject: [PATCH] fix(test): Disable SQL parsing by default #4462 --- Data/testsuite/src/DataTest.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Data/testsuite/src/DataTest.cpp b/Data/testsuite/src/DataTest.cpp index 8a20b419c..fef722b54 100644 --- a/Data/testsuite/src/DataTest.cpp +++ b/Data/testsuite/src/DataTest.cpp @@ -206,11 +206,11 @@ void DataTest::testFeatures() assertTrue (!sess.getFeature("forceEmptyString")); assertTrue (sess.hasFeature("sqlParse")); - assertTrue (sess.getFeature("sqlParse")); - sess.setFeature("sqlParse", false); - assertTrue (!sess.getFeature("sqlParse")); + assertFalse (sess.getFeature("sqlParse")); sess.setFeature("sqlParse", true); assertTrue (sess.getFeature("sqlParse")); + sess.setFeature("sqlParse", false); + assertFalse (sess.getFeature("sqlParse")); assertTrue (sess.hasFeature("autoCommit")); assertTrue (sess.getFeature("autoCommit")); @@ -1498,6 +1498,10 @@ void DataTest::testSQLParse() sess.setFeature("autoCommit", false); assertTrue (!sess.getFeature("autoCommit")); + assertFalse (sess.getFeature("sqlParse")); + sess.setFeature("sqlParse", true); + assertTrue (sess.getFeature("sqlParse")); + Statement stmt = (sess << "SELECT %s%c%s,%d,%u,%f,%s FROM Person WHERE Name LIKE 'Simp%%'", "'",'a',"'",-1, 1u, 1.5, "42", now);