feat: aggiunta ricerca tramite regex nella pagina ricerca supodrata con modal che fornisce rapide indicazioni.
This commit is contained in:
1 parent
2ca95e062a
commit
d32522bcbb
4 files changed
+233
-22
No files matched your search
@@ -40,6 +40,10 @@ if (dbType === 'mysql' || dbType === 'mariadb') {
|
||||
// 2. ILIKE -> LIKE (MySQL LIKE is case-insensitive by default)
|
||||
translatedSql = translatedSql.replace(/\bILIKE\b/gi, 'LIKE');
|
||||
|
||||
// 2b. PostgreSQL regex ~* / ~ -> REGEXP
|
||||
translatedSql = translatedSql.replace(/~\*/g, 'REGEXP');
|
||||
translatedSql = translatedSql.replace(/~/g, 'REGEXP');
|
||||
|
||||
// 3. PostgreSQL string concatenation '||' -> CONCAT(...) in ticket number generator
|
||||
translatedSql = translatedSql.replace(/md5\(random\(\)::text\s*\|\|\s*clock_timestamp\(\)::text\)/gi, 'MD5(CONCAT(RAND(), NOW()))');
|
||||
|
||||
|
||||
Reference in new issue
Block a user