postgresdk 0.18.16 → 0.18.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2740,8 +2740,8 @@ async function introspect(connectionString, schema) {
|
|
|
2740
2740
|
c.column_default,
|
|
2741
2741
|
a.atttypmod
|
|
2742
2742
|
FROM information_schema.columns c
|
|
2743
|
-
LEFT JOIN pg_catalog.
|
|
2744
|
-
LEFT JOIN pg_catalog.
|
|
2743
|
+
LEFT JOIN pg_catalog.pg_namespace n ON n.nspname = c.table_schema
|
|
2744
|
+
LEFT JOIN pg_catalog.pg_class cl ON cl.relname = c.table_name AND cl.relnamespace = n.oid
|
|
2745
2745
|
LEFT JOIN pg_catalog.pg_attribute a ON a.attrelid = cl.oid AND a.attname = c.column_name
|
|
2746
2746
|
WHERE c.table_schema = $1
|
|
2747
2747
|
ORDER BY c.table_name, c.ordinal_position
|
package/dist/index.js
CHANGED
|
@@ -1779,8 +1779,8 @@ async function introspect(connectionString, schema) {
|
|
|
1779
1779
|
c.column_default,
|
|
1780
1780
|
a.atttypmod
|
|
1781
1781
|
FROM information_schema.columns c
|
|
1782
|
-
LEFT JOIN pg_catalog.
|
|
1783
|
-
LEFT JOIN pg_catalog.
|
|
1782
|
+
LEFT JOIN pg_catalog.pg_namespace n ON n.nspname = c.table_schema
|
|
1783
|
+
LEFT JOIN pg_catalog.pg_class cl ON cl.relname = c.table_name AND cl.relnamespace = n.oid
|
|
1784
1784
|
LEFT JOIN pg_catalog.pg_attribute a ON a.attrelid = cl.oid AND a.attname = c.column_name
|
|
1785
1785
|
WHERE c.table_schema = $1
|
|
1786
1786
|
ORDER BY c.table_name, c.ordinal_position
|