mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
grammar: Fix double quote characters as used for escaping one
SQL allows you to use two quote characters instead of just one in order to escape them. Example: ['aa''bb'] is read as [aa'bb]. Add detection for these doubled quote characters to our grammar parser. See issue #128.
This commit is contained in:
@@ -221,7 +221,7 @@ void TestTable::parseSQLEscapedQuotes()
|
||||
|
||||
QCOMPARE(tab.name(), QString("double_quotes"));
|
||||
QCOMPARE(tab.fields().at(0)->name(), QString("a"));
|
||||
QCOMPARE(tab.fields().at(0)->defaultValue(), QString("a''a"));
|
||||
QCOMPARE(tab.fields().at(0)->defaultValue(), QString("'a''a'"));
|
||||
}
|
||||
|
||||
void TestTable::createTableWithIn()
|
||||
|
||||
Reference in New Issue
Block a user