fix(cockroach): fix typo in the schema list sql

This PR includes a single missing quote `'` in a SQL statement used to retrieve the schemas of a CockroachDB instance.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5678
GitOrigin-RevId: 5a56ead2cbf7edbba822b0e565ca5f225c7ac92e
This commit is contained in:
Luca Restagno 2022-08-30 17:31:56 +02:00 committed by hasura-bot
parent b0d2262b20
commit f49b240a39

View File

@ -141,7 +141,7 @@ export const supportedFeatures: DeepRequired<SupportedFeaturesType> = {
const schemaListSql = ( const schemaListSql = (
schemas?: string[] schemas?: string[]
) => `SELECT schema_name FROM information_schema.schemata WHERE ) => `SELECT schema_name FROM information_schema.schemata WHERE
schema_name NOT IN ('information_schema', 'hdb_catalog', 'hdb_views', '_timescaledb_internal', 'crdb_internal) AND schema_name NOT LIKE 'pg\\_%' schema_name NOT IN ('information_schema', 'hdb_catalog', 'hdb_views', '_timescaledb_internal', 'crdb_internal') AND schema_name NOT LIKE 'pg\\_%'
${schemas?.length ? ` AND schema_name IN (${schemas.join(',')})` : ''} ${schemas?.length ? ` AND schema_name IN (${schemas.join(',')})` : ''}
ORDER BY schema_name ASC;`; ORDER BY schema_name ASC;`;