From cb1239889344eb8a5203d7cfb35bf91a08653c64 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 14 Oct 2023 17:31:19 -0700 Subject: [PATCH] tq: fix string quoting for debug Signed-off-by: Varun Patil --- lib/Db/TimelineQuery.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Db/TimelineQuery.php b/lib/Db/TimelineQuery.php index 110de2b8..37715303 100644 --- a/lib/Db/TimelineQuery.php +++ b/lib/Db/TimelineQuery.php @@ -72,6 +72,8 @@ class TimelineQuery $value = $platform->quoteStringLiteral($value ? '1' : '0'); } elseif (null === $value) { $value = $platform->quoteStringLiteral('NULL'); + } else { + $value = $platform->quoteStringLiteral((string) $value); } $sql = str_replace(':'.$key, $value, $sql);