Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getColumns for Late binding views #74

Merged
merged 1 commit into from
Dec 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2482,7 +2482,7 @@ private String buildLocalSchemaColumnsQuery(String catalog,
result.append("WHEN 'timestamp without time zone' THEN 6 ");
result.append("WHEN 'geometry' THEN NULL ");
result.append("WHEN 'super' THEN NULL ");
result.append("WHEN 'numeric' THEN regexp_substr (columntype,'[0-9]+',charindex (',',columntype))::INTEGER ");
result.append("WHEN 'numeric' THEN isnull(nullif(regexp_substr (columntype,'[0-9]+',charindex (',',columntype)),''),'0')::INTEGER ");
result.append("WHEN 'varbyte' THEN NULL ");
result.append("WHEN 'geography' THEN NULL ");
result.append("ELSE 0 END AS DECIMAL_DIGITS, ");
Expand Down