mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
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:
parent
b0d2262b20
commit
f49b240a39
@ -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;`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user