Skip to content

Commit 0572f98

Browse files
committed
feat: escapeIdentifier() handles empty string
1 parent dc5c001 commit 0572f98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

system/Database/BaseConnection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,10 @@ private function protectDotItem(string $item, string $alias, bool $protectIdenti
12241224
*/
12251225
public function escapeIdentifier(string $item): string
12261226
{
1227+
if ($item === '') {
1228+
return '';
1229+
}
1230+
12271231
return $this->escapeChar
12281232
. str_replace(
12291233
$this->escapeChar,

0 commit comments

Comments
 (0)