Skip to content

Commit

Permalink
remove size definition in sqlite3 CREATE INDEX statements
Browse files Browse the repository at this point in the history
these two commits fix an issue caused by cdb8fc1 that prevented the video database from being loaded when using an sqlite db
  • Loading branch information
opdenkamp committed Mar 11, 2011
1 parent 999e8d0 commit 8438004
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/dbwrappers/sqlitedataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ int SqliteDataset::exec(const string &sql) {
// after: CREATE UNIQUE INDEX ixPath ON path ( strPath )
//
// NOTE: unexpected results occur if brackets are not matched
if ( qry.find("CREATE UNIQUE INDEX") != string::npos )
if ( qry.find("CREATE UNIQUE INDEX") != string::npos ||
(qry.find("CREATE INDEX") != string::npos))
{
size_t pos = 0;
size_t pos2 = 0;
Expand Down

0 comments on commit 8438004

Please sign in to comment.