Skip to content
Snippets Groups Projects
Commit 4712b199 authored by Cam Saul's avatar Cam Saul
Browse files

fix uncastification for qualified names

parent f1af72f1
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@
(uncastify \"CAST(DATE AS DATE)\") -> \"DATE\""
[column-name]
(let [column-name (name column-name)]
(keyword (or (second (re-find #"CAST\(([^\s]+) AS [\w]+\)" column-name))
(keyword (or (second (re-find #"CAST\([^.\s]+\.([^.\s]+) AS [\w]+\)" column-name))
(second (re-find (:uncastify-timestamp-regex qp/*driver*) column-name))
column-name))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment