{"action":"opened","issue":{"url":"https://api.github.com/repos/serge-rider/dbeaver/issues/2539","repository_url":"https://api.github.com/repos/serge-rider/dbeaver","labels_url":"https://api.github.com/repos/serge-rider/dbeaver/issues/2539/labels{/name}","comments_url":"https://api.github.com/repos/serge-rider/dbeaver/issues/2539/comments","events_url":"https://api.github.com/repos/serge-rider/dbeaver/issues/2539/events","html_url":"https://github.com/serge-rider/dbeaver/issues/2539","id":274778231,"number":2539,"title":"Error when creating procedure/function/trigger where SQL script contain colon character","user":{"login":"pdanie","id":31191374,"avatar_url":"https://avatars2.githubusercontent.com/u/31191374?v=4","gravatar_id":"","url":"https://api.github.com/users/pdanie","html_url":"https://github.com/pdanie","followers_url":"https://api.github.com/users/pdanie/followers","following_url":"https://api.github.com/users/pdanie/following{/other_user}","gists_url":"https://api.github.com/users/pdanie/gists{/gist_id}","starred_url":"https://api.github.com/users/pdanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdanie/subscriptions","organizations_url":"https://api.github.com/users/pdanie/orgs","repos_url":"https://api.github.com/users/pdanie/repos","events_url":"https://api.github.com/users/pdanie/events{/privacy}","received_events_url":"https://api.github.com/users/pdanie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-17T07:41:58Z","updated_at":"2017-11-17T07:41:58Z","closed_at":null,"author_association":"NONE","body":"DBeaver - **Version 4.2.5 CE**\r\nDBeaver JDBC driver: **Microsoft**\r\nOperating System: **Windows 7** / **Windows 8.1**\r\nDatabase Server: **Microsoft SQL Express 2014**\r\n\r\nWhen Writing SQL scripts for SQL Server it is supported/encouraged to use \";\" character as end of command marker.\r\n\r\nBut when trying to execute script in DBeaver that create procedure, function or triggers and contain \";\" error messages are generated.\r\n\r\n&nbsp;&nbsp; **Error occurred during SQL script execution**\r\n&nbsp;&nbsp;  **Reason: SQL Error [102][S0001]: Incorrect syntax near ';'.**\r\n\r\nExecute the SQL Scripts below using **SQL EDITOR** -> **EXECUTE SQLSCRIPT** menu choice.\r\n\r\n**This work OK**\r\n\r\n```\r\nCREATE PROCEDURE **TestProc**\r\nAS BEGIN\r\n  SELECT 'TestProc'\r\nEND\r\nGO\r\n```\r\n\r\n**This generate an ERROR**\r\n\r\n```\r\nCREATE PROCEDURE **TestProc**\r\nAS BEGIN\r\n  SELECT 'TestProc';\r\nEND;\r\nGO\r\n```\r\n\r\nSeems that the \";\" character after \"SELECT 'TestProc'\" make it fail. If run in _SQL Server Management Studio_ or _JetBrains DataGrip_ Everything works ok.\r\n\r\n\r\n"}}
{"actor":{"display_login":"pdanie"}}