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

4.1.2 not work: func (o *LargeObjects) Open(...) (*LargeObject, error) #651

Closed
ghost opened this issue Dec 22, 2019 · 3 comments
Closed

Comments

@ghost
Copy link

ghost commented Dec 22, 2019

in code use Prepare queries
but in function "func (q *Query) Sanitize(args ...interface{}) (string, error)" return error "unused argument: 0"
as in:

len(q.Parts) == 1
q.Parts[0] == "lo_open"

this is true for all functions in large_objects.go

@jackc
Copy link
Owner

jackc commented Dec 23, 2019

Sorry, I don't understand what you mean.

@ghost
Copy link
Author

ghost commented Dec 23, 2019

oh my english, i create code: https://github.com/bash77/pgx_bug
sorry for repo name 'bug' ))

@jackc jackc closed this as completed in 9cb58fc Dec 27, 2019
@jackc
Copy link
Owner

jackc commented Dec 27, 2019

Thanks for the good example. The problem was an incompatibility between prefer simple protocol and large objects. It has been fixed and test cases added.

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