@@ -184,8 +184,8 @@ export default class PostgresqlAdapter extends AbstractAdapter {
184
184
const sql = `
185
185
SELECT
186
186
routine_schema as schema,
187
- routine_name as routineName,
188
- routine_type as routineType
187
+ routine_name as " routineName" ,
188
+ routine_type as " routineType"
189
189
FROM information_schema.routines
190
190
${ schemaFilter ? `WHERE ${ schemaFilter } ` : '' }
191
191
GROUP BY routine_schema, routine_name, routine_type
@@ -199,7 +199,7 @@ export default class PostgresqlAdapter extends AbstractAdapter {
199
199
200
200
async listTableColumns ( table : string , schema : string = this . defaultSchema ) : Promise < ListTableColumnsResult [ ] > {
201
201
const sql = `
202
- SELECT column_name as columnName, data_type as dataType
202
+ SELECT column_name as " columnName" , data_type as " dataType"
203
203
FROM information_schema.columns
204
204
WHERE table_schema = $1
205
205
AND table_name = $2
@@ -289,12 +289,12 @@ export default class PostgresqlAdapter extends AbstractAdapter {
289
289
async getTableKeys ( table : string , schema : string = this . defaultSchema ) : Promise < TableKeysResult [ ] > {
290
290
const sql = `
291
291
SELECT
292
- tc.constraint_name as constraintName,
293
- kcu.column_name as columnName,
292
+ tc.constraint_name as " constraintName" ,
293
+ kcu.column_name as " columnName" ,
294
294
CASE WHEN tc.constraint_type LIKE '%FOREIGN%' THEN ctu.table_name
295
295
ELSE NULL
296
- END AS referencedTable,
297
- tc.constraint_type as keyType
296
+ END AS " referencedTable" ,
297
+ tc.constraint_type as " keyType"
298
298
FROM information_schema.table_constraints AS tc
299
299
JOIN information_schema.key_column_usage AS kcu
300
300
USING (constraint_schema, constraint_name)
0 commit comments