Skip to content

Commit 359619f

Browse files
committed
adjustment in sql
1 parent 1598ad6 commit 359619f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simplesql/src/main/java/com/simplesql/simplesql/config/SimpleSQL.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public Object execute() {
249249
if (functionParameter) {
250250
if (fields[0] == null || fields[0].equals(""))
251251
columnFunction = "*";
252-
SQLString = SQLString.replace("*","").replace(KEY_FUNCTION_PARAMETER, fields[0]);
252+
SQLString = SQLString.replace(fields[0],"").replace(KEY_FUNCTION_PARAMETER, (CharSequence) getString(fields[0]));
253253
}
254254
SQLString = SQLString + ";";
255255
List lstClasses = new ArrayList<>();
@@ -454,7 +454,7 @@ public boolean execute() {
454454
}
455455

456456
public Object getString(String string) {
457-
String s = "A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;Y;Z;a;b;c;d;d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y;z;\\;\\";
457+
String s = "A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;Y;Z;a;b;c;d;d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y;z;\\;\\*";
458458
String[] arrays = s.split(";");
459459
for (String array : arrays) {
460460
if (string.contains(array)) {

0 commit comments

Comments
 (0)