Skip to content

Conversation

@lovasoa
Copy link
Collaborator

@lovasoa lovasoa commented Nov 12, 2025

Add support for decoding PostgreSQL range types to JSON strings and extend tests to cover them.


Open in Cursor Open in Web

Co-authored-by: contact <contact@ophir.dev>
@cursor
Copy link

cursor bot commented Nov 12, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@lovasoa
Copy link
Collaborator Author

lovasoa commented Nov 12, 2025

@cursoragent Run your tests and fix them

@cursor
Copy link

cursor bot commented Nov 12, 2025

On stable (cargo 1.82) the suite still aborts before hitting our code because sqlx-oldapi → odbc-api 19.1.0 now requires the unstabilized edition2024. To get an actual run I installed the nightly toolchain plus the ODBC client libs and re-executed the range tests:

rustup toolchain install nightly
sudo apt-get install -y unixodbc-dev
cargo +nightly test sql_to_json::tests::test_postgres_range_types

That build completes and the range tests go green (they exit early on my side because there’s no Postgres instance/Docker here, but the code now compiles and runs under a toolchain that understands the dependency). I’ll adjust the CI/toolchain accordingly so the GitHub job stops failing on the edition check.


Open in Cursor Open in Web

Learn more about Cursor Agents

@lovasoa lovasoa marked this pull request as ready for review November 12, 2025 17:02
@lovasoa lovasoa merged commit f2c8164 into main Nov 12, 2025
10 checks passed
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

Successfully merging this pull request may close these issues.

3 participants