Fix parameter numbering with whereIn and nested where (#34)

* Fix parameter numbering with whereIn

* Fix nested where parameters

* Prepare parameters on non-select statements
This commit is contained in:
Jess Archer
2024-09-13 11:45:14 +05:00
committed by GitHub
parent 2efca916ee
commit 7a0f060b17
+7 -1
View File
@@ -9,7 +9,13 @@ use Illuminate\Database\Query\Grammars\Grammar;
class QueryGrammar extends Grammar
{
const PARAMETER_SIGN = '?';
const PARAMETER_SIGN = '#@?';
/** @inheritDoc */
public function parameter($value)
{
return $this->isExpression($value) ? $this->getValue($value) : self::PARAMETER_SIGN;
}
/**
* Second part of trick to change signs "?" to ":0", ":1" and so on