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

Raw Query parse sql with Tuple output incorrect #454

Open
timzaak opened this issue May 28, 2024 · 0 comments
Open

Raw Query parse sql with Tuple output incorrect #454

timzaak opened this issue May 28, 2024 · 0 comments

Comments

@timzaak
Copy link
Contributor

timzaak commented May 28, 2024

Version: (e.g. 4.8.4)
Module: (e.g. quill-jdbc)
Database: (e.g. postgresql)

Expected behavior

 val data = db.run(quote{
      sql"""SELECT time, data from abc where user_id = 1 order by time"""
      .as[Query[(LocalDateTime, io.circe.Json)]]
    })

can be work correctly.

Actual behavior

The SQL log output:

SELECT x._1, x._2 FROM (SELECT time, data from abc  order by time) AS x

Workaround

 sql"""SELECT time as _1, data as _2 from abc where user_id = 1 order by time"""
      .as[Query[(LocalDateTime, io.circe.Json)]]

do it on my own

@getquill/maintainers

@guizmaii guizmaii changed the title Raw Query parse sql with Tuple output incrrect Raw Query parse sql with Tuple output incorrect May 28, 2024
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