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.

Wrong indentation in SQL editor - Version 6.0.2

See original GitHub issue

Hi there,

After upgrade from 6.0.1 to 6.0.2, I found this strange indentation on new lines while typing select queries. To image below shows how it’s being formatted:

image

Or as plain text with \n and \t:

select
	a.*
	from
		tb_foo a
		where
			a.bla > 0
			and
				a.foo > 1
				group by
					a.faa
					order by
						a.faa;

Looking for some configuration, I didn’t find anyone, and I also don’t have any customization on default formatter.

This occurs on both Windows and Linux, just in 6.0.2 version.

PS: I don’t know if this issue (#5683) contains this fix because it’s closed, but, in current version (6.0.2) I get this error.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
uslsscommented, Apr 18, 2019

Thanks for the bug report. The issue seems to be already fixed. You can test the fix in Early Access version (https://dbeaver.io/files/ea)

0reactions
carlosspohrcommented, May 6, 2019

Hi @serge-rider, @uslss,

I just upgraded to 6.0.4 final release, and indentation is OK. You can closed this issue.

Thanks guys!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage Code Formatting - SQL - Microsoft Learn
Manage Code Formatting ; To choose an indenting style. On the Tools menu, click Options. Click Text Editor. ; To change indent tab...
Read more >
sql-formatter - npm
Format whitespace in a SQL query to make it more readable. Latest version: 12.0.3, last published: 20 days ago. Start using sql-formatter in ......
Read more >
Who the Devil Wrote This SQL Code? - Simple Talk
Grant gives some examples of bad formatting and explains why you should never check-in badly-formatted SQL code.
Read more >
Version 6.0 - 6.9.2 Release Notes - What is Decisions?
[DT-026354] Azure SQL Clean Install bug; [DT-026320] This user context can only be used from localhost error; [DT-026389] Active Directory ...
Read more >
52 SQL Editors and IDEs Compared (2020): The Ultimate List
Many of the features are the same as the Professional edition: data types on columns, code complete, SQL history, database diagrams, and inline...
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