console: support mssql views in console

GitOrigin-RevId: 52474d57f233e0d79911ae0c1d98b5c595d5d7e4
This commit is contained in:
Aleksandra Sikora 2021-03-11 11:14:51 +01:00 committed by hasura-bot
parent c35e4a26b6
commit 5778fe3e9b

View File

@ -183,7 +183,7 @@ FROM sys.objects as obj
JOIN sys.types t ON a.user_type_id = t.user_type_id
WHERE a.column_id > 0 and a.object_id = obj.object_id
FOR JSON path
) AS [isc](json) where obj.type_desc in ('USER_TABLE') ${whereClause};`;
) AS [isc](json) where obj.type_desc in ('USER_TABLE', 'VIEW') ${whereClause};`;
},
commonDataTypes: [],
fetchColumnTypesQuery: '',