[chronojump] Fixed SqliteForceSensor.Select when not elastic since recent commits



commit 68e4e70a61901101f197646f67029d5c7edd4b5b
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Jun 3 11:19:10 2022 +0200

    Fixed SqliteForceSensor.Select when not elastic since recent commits

 src/sqlite/forceSensor.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/sqlite/forceSensor.cs b/src/sqlite/forceSensor.cs
index f264be760..c04508b15 100644
--- a/src/sqlite/forceSensor.cs
+++ b/src/sqlite/forceSensor.cs
@@ -618,7 +618,7 @@ class SqliteForceSensorExercise : Sqlite
                        if (elastic == 1)
                                elasticStr = whereOrAndStr + table + ".elastic = 1 AND " + table + 
".forceResultant = 1";
                        else //elastic == 0
-                               elasticStr = whereOrAndStr + table + ".elastic = 0";
+                               elasticStr = whereOrAndStr + " (" + table + ".elastic = 0 OR " + table + 
".forceResultant = 0)";
 
                        whereOrAndStr = " AND ";
                }


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