Updates
This commit is contained in:
@@ -45,10 +45,15 @@ export default function generateTypeDefinition({
|
||||
if (schemaType.dataType?.match(/int/i)) {
|
||||
return "number";
|
||||
}
|
||||
|
||||
if (schemaType.dataType?.match(/text|varchar|timestamp/i)) {
|
||||
return "string";
|
||||
}
|
||||
|
||||
if (schemaType.dataType?.match(/boolean/i)) {
|
||||
return "boolean";
|
||||
}
|
||||
|
||||
return "string";
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ export default function sqlGenOperatorGen({
|
||||
};
|
||||
} else if (equality == "REGEXP") {
|
||||
return {
|
||||
str: `LOWER(${fieldName}) REGEXP LOWER(?')`,
|
||||
str: `LOWER(${fieldName}) REGEXP LOWER(?)`,
|
||||
param: value,
|
||||
};
|
||||
} else if (equality == "FULLTEXT") {
|
||||
|
||||
Reference in New Issue
Block a user