* [story#60489,0.5h] fix error.

This commit is contained in:
qixinzhi
2024-09-04 16:10:43 +08:00
committed by 代婷婷
parent 32932e0ee5
commit ecdc8cfac1
+3
View File
@@ -429,6 +429,7 @@ class sqlparser
*/
private function trimExpr($expr)
{
if(empty($expr)) return $expr;
return trim(trim($expr), '`');
}
@@ -632,6 +633,8 @@ class sqlparser
*/
private function skipLineBreak($sql)
{
if(empty($sql)) return $sql;
$sql = str_replace("\n\t", " ", $sql);
$sql = str_replace("\t\n", " ", $sql);
$sql = str_replace("\n\r", " ", $sql);