Skip to content

Commit

Permalink
Fix parameter numbering with whereIn and nested where (#34)
Browse files Browse the repository at this point in the history
* Fix parameter numbering with whereIn

* Fix nested where parameters

* Prepare parameters on non-select statements
  • Loading branch information
jessarcher authored Sep 13, 2024
1 parent 2efca91 commit 7a0f060
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/QueryGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@

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
Expand Down

0 comments on commit 7a0f060

Please sign in to comment.