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.
2 parents c637687 + b2579a5 commit 05b2d6bCopy full SHA for 05b2d6b
src/Codeception/Lib/Driver/Sqlite.php
@@ -70,7 +70,7 @@ public function getPrimaryKey(string $tableName): array
70
$columns = $stmt->fetchAll(PDO::FETCH_ASSOC);
71
72
foreach ($columns as $column) {
73
- if ($column['pk'] !== '0') {
+ if ($column['pk'] !== '0' && $column['pk'] !== 0) {
74
$primaryKey []= $column['name'];
75
}
76
0 commit comments