-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
In my app I'm using the-tinderbox/clickhouse-builder to make a connection to ClickHouse. This connection doesn't provide a query grammar in the class constructor. This leads to an error in the debugbar:
method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
This related to this line:
| if ($query['type'] === 'query' && $this->renderSqlWithParams && method_exists(DB::connection($query['connection'])->getQueryGrammar(), 'substituteBindingsIntoRawSql')) { |
As DB::connection($query['connection'])->getQueryGrammar() is returning null we see the error.
I'm preparing a PR and hope you are willing it merge it.
Metadata
Metadata
Assignees
Labels
No labels