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 @@ -159,5 +159,16 @@ void TestTable::parseSQLSingleQuotes()
159159 QVERIFY (tab.fields ().at (1 )->name () == " test" );
160160}
161161
162+ void TestTable::parseSQLKeywordInIdentifier ()
163+ {
164+ QString sSQL = " CREATE TABLE deffered(key integer primary key, if text);" ;
165+
166+ Table tab = Table::parseSQL (sSQL );
167+
168+ QVERIFY (tab.name () == " deffered" );
169+ QVERIFY (tab.fields ().at (0 )->name () == " key" );
170+ QVERIFY (tab.fields ().at (1 )->name () == " if" );
171+ }
172+
162173QTEST_MAIN (TestTable)
163174// #include "testsqlobjects.moc"
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ private slots:
1313 void parseSQLMultiPk ();
1414 void parseSQLForeignKey ();
1515 void parseSQLSingleQuotes ();
16+ void parseSQLKeywordInIdentifier ();
1617};
1718
You can’t perform that action at this time.
0 commit comments