mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
SQL Process: handling of DELIMITER to mimic mysql CLI (minor fix)
This commit is contained in:
@ -456,9 +456,7 @@ begin
|
|||||||
if i + 1 < length(sql) then thdchar := sql[i + 2];
|
if i + 1 < length(sql) then thdchar := sql[i + 2];
|
||||||
|
|
||||||
{$REGION 'DELIMITER command'}
|
{$REGION 'DELIMITER command'}
|
||||||
// proccess a DELIMITER command (like MySQL Prompt Client)
|
// process a DELIMITER command (like MySQL Prompt Client)
|
||||||
// note:
|
|
||||||
// LENGTH(DELIMITER<space>) = 10
|
|
||||||
|
|
||||||
// first, verify if could be a DELIMITER command
|
// first, verify if could be a DELIMITER command
|
||||||
// arrangement to don't decrease this parse speed
|
// arrangement to don't decrease this parse speed
|
||||||
@ -510,9 +508,9 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
// now we jump this(these) space(s)
|
// now we jump this(these) space(s) and/or horizontal tab(s)
|
||||||
j := i + 1;
|
j := i + 1;
|
||||||
while ( sql[j] = ' ' ) do
|
while ( ( sql[j] = ' ' ) or ( sql[j] = Char(VK_TAB) ) ) do
|
||||||
j := j + 1;
|
j := j + 1;
|
||||||
|
|
||||||
// start to get the new delimiter
|
// start to get the new delimiter
|
||||||
|
Reference in New Issue
Block a user