We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b0b63a commit 23b131dCopy full SHA for 23b131d
xivModdingFramework/Cache/XivCache.cs
@@ -909,6 +909,12 @@ public WhereClause()
909
/// <returns></returns>
910
public string GetSql(bool includeWhere = true, bool skipJoin = true)
911
{
912
+ // No clause if no valid value.
913
+ if((Inner == null || Inner.Count == 0) && (Column == null || Column == ""))
914
+ {
915
+ return "";
916
+ }
917
+
918
var result = "";
919
if(includeWhere)
920
@@ -987,7 +993,10 @@ public void AddParameters(SQLiteCommand cmd)
987
993
}
988
994
else
989
995
990
- cmd.Parameters.AddWithValue(Column, Value);
996
+ if (Column != null && Column != "")
997
998
+ cmd.Parameters.AddWithValue(Column, Value);
999
991
1000
992
1001
1002
0 commit comments