SQL gen bugfix #4
This commit is contained in:
+6
-1
@@ -81,9 +81,14 @@ export default function sqlGenGenSearchStr({ queryObj, join, field, table_name,
|
||||
str = operatorStrParam.str;
|
||||
sqlSearhValues.push(operatorStrParam.param);
|
||||
}
|
||||
else if (operatorStrParam.str) {
|
||||
else if (operatorStrParam.str && !operatorStrParam.str.match(/\?/)) {
|
||||
str = operatorStrParam.str;
|
||||
}
|
||||
else {
|
||||
sqlSearhValues.push(valueParsed || "");
|
||||
}
|
||||
}
|
||||
console.log("str", str);
|
||||
console.log("sqlSearhValues", sqlSearhValues);
|
||||
return { str, values: sqlSearhValues };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user