From a287d8a27b276672446a050f4de2795df0314272 Mon Sep 17 00:00:00 2001 From: mgrojo Date: Fri, 27 Dec 2019 13:02:49 +0100 Subject: [PATCH] Use correct syntax when format applied to string containing apostrophe The string has to be correctly quoted so contained apostrophes are doubled. This prevented applying a format to cells containing apostrophes (single quotes) since the SQL code raised a syntax error in SQLite. --- src/sqlitetablemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlitetablemodel.cpp b/src/sqlitetablemodel.cpp index e18f0105..84eef437 100644 --- a/src/sqlitetablemodel.cpp +++ b/src/sqlitetablemodel.cpp @@ -272,7 +272,7 @@ QVariant SqliteTableModel::getMatchingCondFormat(const std::map