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

Do not send DELETE after QueryRow #102

Open
pajaks opened this issue Jan 11, 2024 · 1 comment
Open

Do not send DELETE after QueryRow #102

pajaks opened this issue Jan 11, 2024 · 1 comment

Comments

@pajaks
Copy link
Member

pajaks commented Jan 11, 2024

No description provided.

@nineinchnick
Copy link
Member

When calling db.QueryRowContext() and scanning the result, the Scan() method calls Close() on the driver's result struct. The driver is not aware that there are no more results to read and issues an additional DELETE HTTP request. Because the query no longer exists on the server, it returns a 404 response, which is then returned to the calling code.

The driver should correctly set the internal err to io.EOF if there's no data and nextUri in the last received response.

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

No branches or pull requests

2 participants