Closed rick20 closed 1 year ago
Hi! Please, check out the test: https://github.com/glushkovds/phpclickhouse-laravel/blob/b9c2d19540da7d5278294ce82da58ac50b7797c9/tests/BaseTest.php#L34-L43
I guess your Sales
model isn't PhpClickHouseLaravel\BaseModel
, because it didn't have a query
method.
I guess the problem may occurs using (internally) Illuminate\Database\Query\Builder
instead of PhpClickHouseLaravel\Builder
That's because in the QueryGrammar.php in case Where In :number
calculates in place, but in case Basic Where does later over #@?
stub.
@glushkovds Why don't you use parameterize
from the parent class?
Hi,
I encountered an issue when trying to use multiple
where
s. The following querywill produce:
Each where will have parameter index begin from 0. This will cause a product id is used as a first argument for month. Is there any workaround for this particular issue? Thanks.