diff --git a/lib/SP/Storage/Database/MySQLHandler.php b/lib/SP/Storage/Database/MySQLHandler.php index 43cf272aa..0c1a0d5e5 100644 --- a/lib/SP/Storage/Database/MySQLHandler.php +++ b/lib/SP/Storage/Database/MySQLHandler.php @@ -111,7 +111,7 @@ public function getConnection() // Set prepared statement emulation depending on server version $serverVersion = $this->db->getAttribute(PDO::ATTR_SERVER_VERSION); - $this->db->setAttribute(PDO::ATTR_EMULATE_PREPARES, version_compare($serverVersion, '5.1.17', '<')); + $this->db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); $this->dbStatus = self::STATUS_OK; } catch (Exception $e) { @@ -194,4 +194,4 @@ public function getDatabaseName() { return $this->connectionData->getDbName(); } -} \ No newline at end of file +}