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

Ambiguities row/eof packets in the text protocol for very big rows #298

Open
anarthal opened this issue Jun 30, 2024 · 0 comments
Open

Ambiguities row/eof packets in the text protocol for very big rows #298

anarthal opened this issue Jun 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@anarthal
Copy link
Collaborator

The following fails:

SELECT REPEAT('a', 0x1000000)

Because a string_lenenc with such size starts with the EOF packet header. This looks like a design issue in the protocol. Other language drivers solve this by first attempting to parse the packet as a row, and then attempting it as an EOF packet on failure.

@anarthal anarthal added the bug Something isn't working label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant