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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user