diff --git a/src/Codeception/Lib/Driver/MySql.php b/src/Codeception/Lib/Driver/MySql.php index 52b83ee5..40cabf9d 100644 --- a/src/Codeception/Lib/Driver/MySql.php +++ b/src/Codeception/Lib/Driver/MySql.php @@ -35,7 +35,7 @@ public function getPrimaryKey($tableName) if (!isset($this->primaryKeys[$tableName])) { $primaryKey = []; $stmt = $this->getDbh()->query( - 'SHOW KEYS FROM ' . $this->getQuotedName($tableName) . ' WHERE Key_name = "PRIMARY"' + 'SHOW KEYS FROM ' . $this->getQuotedName($tableName) . " WHERE Key_name = 'PRIMARY'" ); $columns = $stmt->fetchAll(\PDO::FETCH_ASSOC);