Skip to content

Fix quoted string bug while inserting array of strings to Postgres - #576

Merged
tyt2y3 merged 5 commits into
SeaQL:masterfrom
sh-soltanpour:postgres-string-array-quote
Jan 19, 2023
Merged

tyt2y3 merged 5 commits into
SeaQL:masterfrom
sh-soltanpour:postgres-string-array-quote

Conversation

@sh-soltanpour

Copy link
Copy Markdown
Contributor

PR Info

  • Dependencies:
  • Dependents:

New Features

Bug Fixes

  • Fix the bug while generating an insert query string. The result should be like VALUES '{val}' while now it's like VALUES '{'val'}'.

Breaking Changes

Changes

@sh-soltanpour

Copy link
Copy Markdown
Contributor Author

Hi @billy1624 @ikrivosheev,

I believe this is ready for review, I'm not sure if I have access to change the status to 'Ready for review' or not.

Thanks.

Comment thread tests/postgres/query.rs Resolved

@ikrivosheev ikrivosheev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sh-soltanpour thank you! LGTM! @tyt2y3 or @billy1624 can someone review the PR?)

@sh-soltanpour
sh-soltanpour requested a review from tyt2y3 January 17, 2023 04:24
@sh-soltanpour

Copy link
Copy Markdown
Contributor Author

Thanks for your approval!
I think it's ready to merge @ikrivosheev. Thanks

@tyt2y3
tyt2y3 merged commit 00cfaac into SeaQL:master Jan 19, 2023
@tyt2y3 tyt2y3 mentioned this pull request Apr 8, 2023
billy1624 pushed a commit that referenced this pull request Apr 8, 2023
)

* Fix quoted string bug while inserting array of strings to Postgres

* Add string array field to the test database

* Run rustfmt on changed files

* Use ARRAY [] syntax for inserting in array

* Update array syntax in test cases
@github-actions

Copy link
Copy Markdown

🎉 Released In 0.29.1 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

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.

Error inserting document containing array in Postgres

3 participants