You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
Thanks for providing such a nice tool for formatting SQL from within SQLcl!
I've been using it n SQLcl 22.4 and it works fine.
... but I found one bug:
if you run it with a single file instead of directory, i.e. tvdformat c:\temp\x.sql xml=....
then the call from getFiles() to isRelevantFile() fails with Java type cast error - line 60 in format.js.
It's a very easy fix:
from if (isRelevantFile(rootPath, extensions, ignoreMatcher)) {
to if (isRelevantFile(javaPaths.get(rootPath), extensions, ignoreMatcher)) {
Hi Philip!
Thanks for providing such a nice tool for formatting SQL from within SQLcl!
I've been using it n SQLcl 22.4 and it works fine.
... but I found one bug:
if you run it with a single file instead of directory, i.e.
tvdformat c:\temp\x.sql xml=....then the call from
getFiles()toisRelevantFile()fails with Java type cast error - line 60 in format.js.It's a very easy fix:
from
if (isRelevantFile(rootPath, extensions, ignoreMatcher)) {to
if (isRelevantFile(javaPaths.get(rootPath), extensions, ignoreMatcher)) {Best regards,
Plamen