mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Grammar: Allow multiple table keys which are not separated by commas
Fix table definitions like this... CREATE TABLE [player_tech_branches] ( [from_id] INTEGER NOT NULL REFERENCES [techs](id), [to_id] INTEGER NOT NULL REFERENCES [techs](id), UNIQUE ([from_id], [to_id]) PRIMARY KEY ([from_id], [to_id]) ) ...where there are multiple keys which are not separated by commas. This partially fixed EoD's database in issue #63.
This commit is contained in:
@@ -323,7 +323,8 @@ Table CreateTableWalker::table()
|
||||
}
|
||||
|
||||
s = s->getNextSibling(); //COMMA or RPAREN
|
||||
s = s->getNextSibling();
|
||||
if(s->getType() == sqlite3TokenTypes::COMMA || s->getType() == sqlite3TokenTypes::RPAREN)
|
||||
s = s->getNextSibling();
|
||||
} else {
|
||||
// It is
|
||||
|
||||
|
||||
Reference in New Issue
Block a user