-
Notifications
You must be signed in to change notification settings - Fork 71
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
Instance of : ToRow (Values (Int, Text)) #268
Comments
Does your example use a single ? parameter? Sounds like you need to wrap the Values type in an |
Indeed, you are right! Using the Only constructor, it compiles now. Many thanks. |
It compiles but I get an SQL error: "subquery should return one column" Then I am trying to use the function renderQuery you gave here: I can hardly use it to show the resulting query sent to the database. Here is the function:
Many thanks in advance. |
Yes, renderQuery would not be very useful to you. Basicall, what you would want to do is replace query with formatQuery. |
Indeed. Now I better understand how to use formatQuery. I have solved my issue, found the right query, and I do think I have now a great workflow to work with postgresql-simple. Many thanks for this library, for your answers. Best wishes for your projects. |
Hello,
I am trying this example in the documentation:
postgresql-simple/src/Database/PostgreSQL/Simple/Types.hs
Line 228 in 14d00c2
I need to specify the types , fine, but I get an error :
I am wondering how I should declare this instance and I am guessing there is something wrong somewhere and unexpected since the example is documented.
Do you have an example please ?
Many thanks in advance for the help.
The text was updated successfully, but these errors were encountered: