diff -u b/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php b/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php --- b/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php +++ b/core/modules/pgsql/src/Driver/Database/pgsql/Schema.php @@ -10,8 +10,7 @@ // cSpell:ignore attrelid atttypid atttypmod bigserial conkey conname conrelid // cSpell:ignore contype fillfactor indexname indexrelid indisprimary indkey // cSpell:ignore indrelid nextval nspname regclass relkind relname relnamespace -// cSpell:ignore schemaname setval -// cSpell:ignore refobjid refobjsubid objid classid +// cSpell:ignore schemaname setval refobjid refobjsubid objid classid /** * @addtogroup schemaapi @@ -1110,10 +1109,10 @@ */ public function getSequenceName(string $table, string $column): ?string { $args = [ - ':table' => $this->prefixTables('{' . $table . '}'), + ':table' => $this->connection->prefixTables('{' . $table . '}'), ':column' => $column, ]; - return $this + return $this->connection ->query("SELECT pg_get_serial_sequence(:table, :column)", $args) ->fetchField(); } @@ -1131,7 +1130,7 @@ */ public function sequenceExists(string $name): bool { $args = [':name' => $name]; - return (bool) $this + return (bool) $this->connection ->query("SELECT c.relname FROM pg_class as c WHERE c.relkind = 'S' AND c.relname = :name", $args) ->fetchField(); }