Filter by templated schema name for postgres queries (#21635)
There were certain queries which did not filter by the current schema, but hardcoded public schema. Apart from that, we always filter with the current schema which allows connection proxies to run multiple MM within a single DB. ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f07de38cc5
Коммит
91f7eb0957
@@ -19,11 +19,13 @@ BEGIN
|
||||
SELECT count(*) != 0 INTO col_exists
|
||||
FROM information_schema.columns
|
||||
WHERE table_name = 'oauthauthdata'
|
||||
AND table_schema = current_schema()
|
||||
AND column_name = 'state';
|
||||
|
||||
SELECT count(*) != 0 INTO type_exists
|
||||
FROM information_schema.columns
|
||||
WHERE table_name = 'oauthauthdata'
|
||||
AND table_schema = current_schema()
|
||||
AND column_name = 'state'
|
||||
AND data_type = 'character varying'
|
||||
AND character_maximum_length = 1024;
|
||||
|
||||
Ссылка в новой задаче
Block a user