From ac2652e729f68f2c1f04383ccbd7a1b0e2821d74 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 26 Oct 2020 01:33:46 +0000 Subject: [PATCH] Revert "test removing scoresql_value_prepare now that bools are handled properly upstream" This reverts commit 3a0f172a8c4b27126a0828261eea6d4954886804. --- ext/relationships/main.php | 2 +- ext/relationships/test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/relationships/main.php b/ext/relationships/main.php index 86aa88d9..de1bf7a5 100644 --- a/ext/relationships/main.php +++ b/ext/relationships/main.php @@ -206,7 +206,7 @@ class Relationships extends Extension $database->execute( "UPDATE images 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] ); } } diff --git a/ext/relationships/test.php b/ext/relationships/test.php index 8899651d..6f083a42 100644 --- a/ext/relationships/test.php +++ b/ext/relationships/test.php @@ -99,7 +99,7 @@ class RelationshipsTest extends ShimmiePHPUnitTestCase global $database; $database->execute( "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));