We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a295c4 commit c60fbedCopy full SHA for c60fbed
composer.json
@@ -22,6 +22,7 @@
22
"codeception/codeception": "*@dev"
23
},
24
"require-dev": {
25
+ "behat/gherkin": "~4.10.0",
26
"squizlabs/php_codesniffer": "*"
27
28
"conflict": {
src/Codeception/Lib/Driver/PostgreSql.php
@@ -164,7 +164,7 @@ public function getPrimaryKey(string $tableName): array
164
FROM pg_index i
165
JOIN pg_attribute a ON a.attrelid = i.indrelid
166
AND a.attnum = ANY(i.indkey)
167
- WHERE i.indrelid = '\"{$tableName}\"'::regclass
+ WHERE i.indrelid = " . $this->getQuotedName($tableName) . "::regclass
168
AND i.indisprimary";
169
$stmt = $this->executeQuery($query, []);
170
$columns = $stmt->fetchAll(PDO::FETCH_ASSOC);
0 commit comments