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

fix(pgwire): fix Rust sqlx crate #3237

Merged
merged 18 commits into from
May 3, 2023
Merged

fix(pgwire): fix Rust sqlx crate #3237

merged 18 commits into from
May 3, 2023

Conversation

jerrinot
Copy link
Contributor

fixes #3204

The sqlx crate sends SYNC request right after login and it expects it receive ReadyNewQuery response.

fixes #3204

The sqlx crate sends SYNC request right after login and
it expects it receive ReadyNewQuery response.
@jerrinot jerrinot added Bug Incorrect or unexpected behavior Postgres Wire Issues or changes relating to Postres wire protocol labels Apr 18, 2023
@jerrinot
Copy link
Contributor Author

sending as a draft to run all existing tests while turning an ad-hoc Rust code into a hex test-case

@jerrinot jerrinot marked this pull request as ready for review April 18, 2023 14:37
@bluestreak01 bluestreak01 marked this pull request as draft April 18, 2023 21:15
@jerrinot jerrinot marked this pull request as ready for review April 24, 2023 15:02
@jerrinot jerrinot marked this pull request as draft April 28, 2023 16:59
so it's symmetric with creation in the BeforeClass
there is going to be a separate PR with PgCodec
@jerrinot jerrinot marked this pull request as ready for review May 2, 2023 12:06
this is sufficient to fix the rust sqlx client and it carries a minimal risk.
larger changes will be done later, with an appropriate test suite.
@ideoma
Copy link
Collaborator

ideoma commented May 3, 2023

[PR Coverage check]

😍 pass : 4 / 5 (80.00%)

file detail

path covered line new line coverage
🔵 io/questdb/cutlass/pgwire/PGConnectionContext.java 4 5 80.00%

@bluestreak01 bluestreak01 merged commit c91e107 into master May 3, 2023
20 checks passed
@bluestreak01 bluestreak01 deleted the jh_sync_rnq branch May 3, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Incorrect or unexpected behavior Postgres Wire Issues or changes relating to Postres wire protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Queries timing out with Rust's sqlx
4 participants