question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System information:

  • Operating system (distribution) and version macOS 10.14.4 (18E226)
  • DBeaver version 6.0.2
  • Java version 1.8.0_121
  • Additional extensions No

Connection specification:

  • Database name and version PostgreSQL 11
  • Driver name PostgreSQL 42.2.5
  • Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you’re observing:

When I run Format SQL,get the wrong result

befor

SELECT column_1,
       column_2
FROM table;

after

SELECT
	column_1,;
	
	column_2;
FROM
TABLE;

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
knoxyzcommented, Apr 16, 2019

I have the same issue since 6.0.2 with Kubuntu 18.10 and OpenJDK 1.8.0_191. Each line-break becomes a semicolon (mysql and informix) or “GO” (mssql).

It’s works fine again if I disable the option “Insert delimiters in empty lines”: File -> Settings -> database -> Editors -> SQL-Editor -> SQL-Format -> “Default formatter”.

0reactions
uslsscommented, Apr 24, 2019

verified

Read more comments on GitHub >

github_iconTop Results From Across the Web

Format SQL Statements Online - sqlformat.org
SQLFormat is a free online formatter for SQL statements. Enter your SQL statement in the textarea below and click "Format SQL" [Ctrl+Enter].
Read more >
Instant SQL Formatter
Free online sql formatting tool, beautify sql code instantly for SQL Server, Oracle, DB2, MySQL, Sybase, Access and MDX.
Read more >
SQL Server FORMAT() Function - W3Schools
The FORMAT() function formats a value with the specified format (and an optional culture in SQL Server 2017). Use the FORMAT() function to...
Read more >
Format SQL Server Queries Easily - Online SQL Formatter ...
Free online SQL Formatter for SQL Server - Beautify SQL statements instantly and convert code into well formatted script. Powered by Devart's SQL...
Read more >
Free Online SQL Formatter - Redgate Software
Format your own SQL code using this free online formatter. Try formatting your SQL code with a few pre-defined styles. ... This SQL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found