mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
feat: escapeIdentifier() handles empty string
This commit is contained in:
parent
dc5c001200
commit
0572f9849b
@ -1224,6 +1224,10 @@ abstract class BaseConnection implements ConnectionInterface
|
||||
*/
|
||||
public function escapeIdentifier(string $item): string
|
||||
{
|
||||
if ($item === '') {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $this->escapeChar
|
||||
. str_replace(
|
||||
$this->escapeChar,
|
||||
|
Loading…
x
Reference in New Issue
Block a user