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
This allows to temporarily change the statement separator with an inline comment and thus supports to execute statements that uses the semicolon within their expression, for example triggers or procedures with `BEGIN..END` blocks.
Example:
```sql
DROP PROCEDURE foobar;
--#SET TERMINATOR !
CREATE PROCEDURE foobar
BEGIN
declare v char(10);
select value into v from sometable;
if v = 'test' then
update sometable set value = '';
end if;
END!
--#SET TERMINATOR ;
LABEL ON PROCEDURE foobar IS 'Example';
```
This commit fixes feature request 433 on sourceforge (https://sourceforge.net/p/squirrel-sql/feature-requests/433/).
It currently only supports the default QueryTokenizer. The statement separator is only changed for the current execution.
0 commit comments