We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb99ea6 commit f895a77Copy full SHA for f895a77
src/TgDatabase/Database.php
@@ -321,7 +321,7 @@ public function prepareValue($value) {
321
else $rc = $this->quote(json_encode($value));
322
} else if (is_array($value)) {
323
$rc = $this->quote(json_encode($value));
324
- } else if (is_numeric($value)) {
+ } else if (is_numeric($value) && !is_string($value)) {
325
// Nothing to do
326
} else {
327
$rc = $this->quote($value);
0 commit comments