Skip to content

Commit

Permalink
Fix casing-issue for regtype selection
Browse files Browse the repository at this point in the history
  • Loading branch information
kristiandupont committed Jul 8, 2020
1 parent ac9be09 commit 7059767
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import parseComment from './parseComment';
async function extractColumns(schemaName, tableOrViewName, db) {
const dbColumns = await db
.select(
db.raw('*, ("udt_schema" || \'.\' || "udt_name")::regtype as regtype')
db.raw(
`*, ('"' || "udt_schema" || '"."' || "udt_name" || '"')::regtype as regtype`
)
)
.from('information_schema.columns')
.where('table_schema', schemaName)
Expand Down

0 comments on commit 7059767

Please sign in to comment.