Replies: 11 comments
-
Currently DBeaver doesn't convert identifiers case at all. The only exception is identifiers auto-complete (database case is used for that). |
Beta Was this translation helpful? Give feedback.
-
Hmm, not sure what you mean. Consider this: select 1 "a" Now select it, right click > format > to upper case and I'm getting this: SELECT 1 "A" When I would have preferred to get this instead: SELECT 1 "a" |
Beta Was this translation helpful? Give feedback.
-
Case conversion is a very simple function which converts case of all letters. This function is a standard text editor action provided by Eclipse. It doesn't know anything about SQL. |
Beta Was this translation helpful? Give feedback.
-
OKOK, let's assume I find the standard Eclipse provided feature useless (because it's wrong to convert Do you agree that it would be an interesting feature to just upper-case / lower-case all keywords (and perhaps, unquoted names)? If it helps, that's how Oracle's SQL Developer works, for instance. |
Beta Was this translation helpful? Give feedback.
-
Agreed, that makes sense.
This will be the third way to format SQL. Making two additional actions for case conversion with syntax parser looks too sophisticated. Maybe it'd be better to improve SQL formatter/add extra options. |
Beta Was this translation helpful? Give feedback.
-
After all I think that this feature can be covered by some external formatter (which now can be configured in preferences). |
Beta Was this translation helpful? Give feedback.
-
Looks like already converts... Futhermore keywords are converted to lovercase. How to turn this feature off? |
Beta Was this translation helpful? Give feedback.
-
Preferences->General->Editors->SQL Editor->SQL Formatting->Auto format |
Beta Was this translation helpful? Give feedback.
-
great! thanks! |
Beta Was this translation helpful? Give feedback.
-
How can I change the "database case" to low-case? |
Beta Was this translation helpful? Give feedback.
-
Being able to auto format keywords to lowercase is the best thing ever. |
Beta Was this translation helpful? Give feedback.
-
The current upper/lower case formatting option will just modify the entire selected string. Sometimes that's not what I want as a user. Usually, I'd like to just upper-case all keywords, as in:
But the identifiers / object names should stay the same. Specifically those that are put in double quotes (or brackets, backticks, depending on the database) should not be modified, because the result would be wrong.
So, there are two ways to tackle this:
Beta Was this translation helpful? Give feedback.
All reactions