Skip to content


Add value of the case_sensitive_like PRAGMA to the project files
Browse files Browse the repository at this point in the history
We allow the user to edit the case_senstive_like PRAGMA via the UI. But
because its state is not saved in the database - just like with the
foreign_key PRAGMA - we should save it in the project file for users who
want to restore the entire environment.
  • Loading branch information
MKleusberg committed Aug 9, 2018
1 parent 4f1256c commit c9d651c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MainWindow.cpp
Expand Up @@ -2362,6 +2362,8 @@ bool MainWindow::loadProject(QString filename, bool readOnly)
db.setPragma("foreign_keys", xml.attributes().value("foreign_keys").toString());
db.setPragma("case_sensitive_like", xml.attributes().value("case_sensitive_like").toString());
} else if( == "window") {
// Window settings
while(xml.readNext() != QXmlStreamReader::EndElement && != "window")
Expand Down Expand Up @@ -2580,6 +2582,7 @@ void MainWindow::saveProject()
xml.writeAttribute("path", db.currentFile());
xml.writeAttribute("foreign_keys", db.getPragma("foreign_keys"));
xml.writeAttribute("case_sensitive_like", db.getPragma("case_sensitive_like"));

// Window settings
Expand Down

0 comments on commit c9d651c

Please sign in to comment.