Dbeaver: Opening and then executing a script file encoded with UTF-8 BOM gives an error

Created on 3 Oct 2017  路  3Comments  路  Source: dbeaver/dbeaver

screen shot 2017-10-03 at 15 28 22

I am using OSX 10.12.6, DBeaver 4.2.2. Attached the script file.

test.zip

bug

All 3 comments

Hi,

I've investigated a bit regarding this topic.
It seems to me, the root cause of this issue is kind of known ;-)
See https://www.eclipse.org/forums/index.php/t/157485/
And https://bugs.eclipse.org/bugs/show_bug.cgi?id=160614

My proposal is to follow advice and use the extension point org.eclipse.core.contenttype.contentTypes and make org.eclipse.core.runtime.text as base-type for 'sql' extensions. This should do the job.

Thanks, that seems to work. Shouldn't this be the default extension point for sql files in DBeaver?

@nitram509 thanks for the link.
Sql extension was already bound to org.eclipse.core.runtime.text but SQL content type describer was badly formed. Now fixed - BOM files are opening just fine.
See fix in 4.2.3.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FrederikNS picture FrederikNS  路  3Comments

gabrieltomio picture gabrieltomio  路  3Comments

Otiel picture Otiel  路  3Comments

HerbertR picture HerbertR  路  3Comments

infectormp picture infectormp  路  3Comments