Fixes all syntax SDK changes in AdmAql101 example
diff --git a/asterix-app/src/main/resources/sdk/static/js/asterix-sdk-stable.js b/asterix-app/src/main/resources/sdk/static/js/asterix-sdk-stable.js
index aa0fcd0..272cb05 100644
--- a/asterix-app/src/main/resources/sdk/static/js/asterix-sdk-stable.js
+++ b/asterix-app/src/main/resources/sdk/static/js/asterix-sdk-stable.js
@@ -26,9 +26,12 @@
statements = [ statements ];
}
- var m = mode;
+ var m = typeof mode ? mode : "synchronous";
+
var query = "use dataverse " + this._properties["dataverse"] + ";\n" + statements.join("\n");
+ alert(query);
+
this._api(
{
"query" : query,
@@ -584,7 +587,7 @@
isDecor = false;
expc++;
while (expc < arguments.length) {
- variableRefs.push("$" + arguments[expc]);
+ variableRefs.push(arguments[expc]);
expc++;
}
@@ -599,7 +602,7 @@
isDecor = false;
}
- expression += "$" + arguments[expc] + " := " + arguments[nextc].val();
+ expression += arguments[expc] + " := " + arguments[nextc].val();
expressions.push(expression);
expc++;
}