-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Description
-
Space is removed between DELIMITER and semicolon.
If I execute
\SqlFormatter::format('DELIMITER ;');
Then I get
DELIMITER;
My expectation is that space will be preserved after DELIMITER.
-
Error for forward slashes as DELIMITER.
If I execute
\SqlFormatter::format('DELIMITER //')
then I get ErrorException "Uninitialized string offset: 1"
line 217 in vendor/jdorn/sql-formatter/lib/SqlFormatter.php
:
if ($string[0] === '#' || (isset($string[1])&&($string[0]==='-'&&$string[1]==='-') || ($string[0]==='/'&&$string[1]==='*'))) {
Metadata
Metadata
Assignees
Labels
No labels