Revert "test removing scoresql_value_prepare now that bools are handled properly upstream"
This reverts commit 3a0f172a8c4b27126a0828261eea6d4954886804.
This commit is contained in:
parent
3a0f172a8c
commit
ac2652e729
@ -206,7 +206,7 @@ class Relationships extends Extension
|
|||||||
$database->execute(
|
$database->execute(
|
||||||
"UPDATE images
|
"UPDATE images
|
||||||
SET has_children = :has_children WHERE id = :pid",
|
SET has_children = :has_children WHERE id = :pid",
|
||||||
["has_children"=>($children>0), "pid"=>$parent_id]
|
["has_children"=>$database->scoresql_value_prepare($children>0), "pid"=>$parent_id]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ class RelationshipsTest extends ShimmiePHPUnitTestCase
|
|||||||
global $database;
|
global $database;
|
||||||
$database->execute(
|
$database->execute(
|
||||||
"UPDATE images SET parent_id=NULL, has_children=:false",
|
"UPDATE images SET parent_id=NULL, has_children=:false",
|
||||||
["false"=>false]
|
["false"=>$database->scoresql_value_prepare(false)]
|
||||||
);
|
);
|
||||||
// FIXME: send_event(new ImageRelationshipSetEvent($image_2->id, null));
|
// FIXME: send_event(new ImageRelationshipSetEvent($image_2->id, null));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user