-
Notifications
You must be signed in to change notification settings - Fork 25
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
count(*)
query returns differently from sqlite3 client
#76
Comments
You can check the reproducer to the problem at this link https://github.com/sahidrahman404/ent-libsql-repro. The reproduction steps is in the readme |
I checked that the query works when run directly through a |
It seems that the issue is that libsql returns the following column names for this query: |
The error comes from https://github.com/ent/ent/blob/master/dialect/sql/scan.go#L225 |
Here's how to get the reproducer to work with both sqlite and libsql:
|
This is not a driver issue but a SQLD problem so I'm closing this issue in favour of libsql/sqld#666. There's a work around to just name |
I use Ent as an ORM and I get this error message
"sql/scan: missing struct field for column: COUNT (*) (COUNT )"
if I do query like belowI didn't get that error message if I use sqlite3 client
The text was updated successfully, but these errors were encountered: