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 fb4d0ad commit d7cf26eCopy full SHA for d7cf26e
src/QueryBuilder.php
@@ -995,9 +995,12 @@ public function prepare($sql = null)
995
$sql = $this->{'prepare' . $this->_method}();
996
}
997
998
- return empty($this->bindings)
+ $sql = empty($this->bindings)
999
|| strpos($sql, '%') === false
1000
? $sql : Connection::prepare($sql, $this->bindings);
1001
+
1002
+ return str_replace("''",'NULL', $sql);
1003
1004
1005
1006
/**
0 commit comments