Skip to content

Commit

Permalink
fix error in query import
Browse files Browse the repository at this point in the history
Ryan Wisnesky committed Jul 29, 2024

Verified

This commit was signed with the committer’s verified signature.
lucasssvaz Lucas Saavedra Vaz
1 parent 14d0649 commit c3df89e
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/catdata/cql/Mapping.java
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ public static String coq(String s) {
if (s.equals("*")) return "times";
if (s.equals("-")) return "minus";
if (s.equals("/")) return "divide";

if (s.length()==0) return "";
s = s.replaceAll("[^a-zA-Z0-9]", "");
if (!Character.isAlphabetic(s.charAt(0)))
s = ("cql" + s);
8 changes: 5 additions & 3 deletions src/catdata/cql/Query.java
Original file line number Diff line number Diff line change
@@ -694,11 +694,13 @@ public Query(Map<String, Ty> params, Map<String, Term<Ty, Void, Sym, Void, Void,
}

// System.out.println("!!!");
// System.out.println(fks);
// System.out.println("@@@");

for (Fk2 fk2 : fks.keySet()) {
Map<String, Term<Ty, En1, Sym, Fk1, Att1, String, String>> www = new THashMap<>(sks.get(fk2));

Map<String, Term<Ty, En1, Sym, Fk1, Att1, String, String>> www = new THashMap<>();
if (sks.containsKey(fk2)) { www.putAll(sks.get(fk2)); }


for (String v : params.keySet()) {
www.put(v, Term.Sk(v));
}

0 comments on commit c3df89e

Please sign in to comment.