Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't insert COUNT(id) in Field #484

Closed
duhanov opened this issue Aug 11, 2023 · 3 comments
Closed

Can't insert COUNT(id) in Field #484

duhanov opened this issue Aug 11, 2023 · 3 comments

Comments

@duhanov
Copy link

duhanov commented Aug 11, 2023

In last version i cant insert COUNT(id), its translate to "COUNT(id)" and get errror (field not found)
In before version - all ok.

@aangelisc
Copy link
Contributor

Hi @duhanov, would you be able to give more details on the query you're trying to run?

Are you running this via the builder or SQL editor? What's the full query you're trying to run?

@aangelisc aangelisc moved this from Incoming to Waiting in Partner Datasources Aug 16, 2023
@SpencerTorres
Copy link
Collaborator

@aangelisc I think this is in the query builder. I'm not sure which input they're referring to, but it seems like they're trying to add COUNT(id) as a custom value (perhaps in the column selection). By default, typing a custom column in like this will append it to the SQL as a quoted string ( "COUNT(id)" )

A possible fix for this (and other functions) is to remove the quotes when the string contains parenthesis characters ( )

@SpencerTorres
Copy link
Collaborator

This issue should be fixed in v4. When a column contains a space or parenthesis, we skip the string escape so that it's inserted directly into the query. Open another issue if the problem persists. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants