Skip to content
Snippets Groups Projects
Unverified Commit 2f6f022c authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Fix comparison

CREATE TABLE may return 0 on some DBMS, but false is always an indicator something's wrong
parent 8503547e
No related branches found
No related tags found
No related merge requests found
......@@ -293,7 +293,7 @@ class MetaDataStorageHandlerPdo extends MetaDataStorageSource
"CREATE TABLE IF NOT EXISTS $tableName (entity_id VARCHAR(255) PRIMARY KEY NOT NULL, entity_data ".
"TEXT NOT NULL)"
);
if ($rows === 0) {
if ($rows === false) {
$fine = false;
} else {
$stmt += $rows;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment