[chronojump] Fixed crash on select a unlimited runInterval test according to diff " with ' : https://gitlab.gnome



commit 8e43479af4068cae06cc45375bd2668e72f60bfa
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Apr 20 17:48:55 2022 +0200

    Fixed crash on select a unlimited runInterval test according to diff " with ' : 
https://gitlab.gnome.org/GNOME/chronojump/-/issues/698

 src/sqlite/runType.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/sqlite/runType.cs b/src/sqlite/runType.cs
index 87813a062..19b9e0ff8 100644
--- a/src/sqlite/runType.cs
+++ b/src/sqlite/runType.cs
@@ -618,8 +618,8 @@ class SqliteRunIntervalType : SqliteRunType
                        Sqlite.Open();
                dbcmd.CommandText = "SELECT * " +
                        " FROM " + Constants.RunIntervalTypeTable +
-                       " WHERE name  = \"" + typeName +
-                       "\" ORDER BY uniqueID";
+                       " WHERE name  = \'" + typeName +
+                       "\' ORDER BY uniqueID";
                
                LogB.SQL(dbcmd.CommandText.ToString());
                dbcmd.ExecuteNonQuery();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]