eda/sqlite: Set SQLITE_OMIT_AUTHORIZATION to work around bug in SQLite
authorJerome St-Louis <jerome@ecere.com>
Fri, 10 May 2013 19:52:52 +0000 (15:52 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 10 May 2013 19:52:52 +0000 (15:52 -0400)
commit392bbe4cc38127fc94bbd7186a7b97ceaf08240b
tree157e485349cab17efeb6c28b274f32bf57414ed7
parent0a2481ffcb19c9e958657167a772c2e5f4d1b648
eda/sqlite: Set SQLITE_OMIT_AUTHORIZATION to work around bug in SQLite
- Code within for this authorization is causing random crashes on preparing the statement:
  UPDATE Contacts SET ROWID = ? WHERE ROWID = ?
  with a table:
  CREATE TABLE Contacts(Id INTEGER PRIMARY KEY, n TEXT, o TEXT, c TEXT, s TEXT, p TEXT, e TEXT, a INTEGER);

  This line:

  rc = sqlite3AuthCheck(pParse, SQLITE_UPDATE, pTab->zName, pTab->aCol[j].zName, db->aDb[iDb].zName);

  Is not within an 'else' of 'if( j>=pTab->nCol )'

  ROWID is not properly handled here.
eda/drivers/sqlite/EDASQLite.epj