You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bind function will return error clickhouse [bind]: mixed named, numeric or positional parameters when using ternary operator "?:" with named arguments.
Maybe we should skip the havePositional check when passing named arguments (since the regex expression may not cover all query scenarios using ternary operators or constraint "?").
This logic seems to be introduced long ago, since we are using an archived CH version (19.x) which not supporting directly pass parameters with query, we now have switched to use if function to replace all ternary operators as a work around.
I will also try to check binding strategies in other language implementations for clickhouse ;)
Describe the bug
Bind function will return error
clickhouse [bind]: mixed named, numeric or positional parameters
when using ternary operator "?:" with named arguments.Maybe we should skip the
havePositional
check when passing named arguments (since the regex expression may not cover all query scenarios using ternary operators or constraint "?").clickhouse-go/bind.go
Lines 78 to 94 in b3c72d8
Code example
The text was updated successfully, but these errors were encountered: