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 a select statement be constructed using "raw"? #192

Open
sokulski opened this issue May 27, 2023 · 0 comments
Open

Can a select statement be constructed using "raw"? #192

sokulski opened this issue May 27, 2023 · 0 comments

Comments

@sokulski
Copy link

I have the following line in a request on a system that has been out of use for about 14 months. In the ensuing time MariaDB was updated and tests were performed, but this system was not tested as it was not operational at the time.

The offending line is in the request is:

$select: [this.raw('*, (capacity_remaining / capacity) as "capacity_remaining_percentage"')],

The query is failing because the select query cannot be parsed by _selectQuery. The error is item.match is not a function which points me towards the item not being a string as expected.

Is there another means of constructing a raw select statement for a query in Feathers Objection?

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

No branches or pull requests

1 participant