tq: fix string quoting for debug

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/877/head
Varun Patil 2023-10-14 17:31:19 -07:00
parent 27e9b093bf
commit cb12398893
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ class TimelineQuery
$value = $platform->quoteStringLiteral($value ? '1' : '0'); $value = $platform->quoteStringLiteral($value ? '1' : '0');
} elseif (null === $value) { } elseif (null === $value) {
$value = $platform->quoteStringLiteral('NULL'); $value = $platform->quoteStringLiteral('NULL');
} else {
$value = $platform->quoteStringLiteral((string) $value);
} }
$sql = str_replace(':'.$key, $value, $sql); $sql = str_replace(':'.$key, $value, $sql);