File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,17 @@ void TestTable::parseNonASCIIChars()
213213 QVERIFY (tab.fields ().at (0 )->name () == " Fieldöäüß" );
214214}
215215
216+ void TestTable::parseSQLEscapedQuotes ()
217+ {
218+ QString sSql = " CREATE TABLE double_quotes(a text default 'a''a');" ;
219+
220+ Table tab = Table::parseSQL (sSql ).first ;
221+
222+ QCOMPARE (tab.name (), QString (" double_quotes" ));
223+ QCOMPARE (tab.fields ().at (0 )->name (), QString (" a" ));
224+ QCOMPARE (tab.fields ().at (0 )->defaultValue (), QString (" a''a" ));
225+ }
226+
216227void TestTable::createTableWithIn ()
217228{
218229 QString sSQL = " CREATE TABLE not_working("
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ private slots:
2020 void parseSQLKeywordInIdentifier ();
2121 void parseSQLWithoutRowid ();
2222 void parseNonASCIIChars ();
23+ void parseSQLEscapedQuotes ();
2324 void createTableWithIn ();
2425 void createTableWithNotLikeConstraint ();
2526};
You can’t perform that action at this time.
0 commit comments