You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parser throw fatal error on SQL with DELIMITER statements.
Test code:
<?phpuseKodus\SQLSplit\Splitter;
require'vendor/autoload.php';
$sql = <<<SQL DELIMITER $$ CREATE OR REPLACE FUNCTION `someFunc`(`percent` INT UNSIGNED) RETURNS double(15,2) NO SQL BEGIN IF percent = 100 THEN RETURN 0.00; END IF; RETURN 100; END $$ DELIMITER ;SQL;
$statements = Splitter::split($sql);
var_dump($statements);
Hi.
The parser throw fatal error on SQL with DELIMITER statements.
Test code:
Output:
The text was updated successfully, but these errors were encountered: