Skip to content

Fixes false positives in case of identifier with bind mark (:)#782

Closed
rommelst wants to merge 2 commits intoSOCI:masterfrom
rommelst:master
Closed

Fixes false positives in case of identifier with bind mark (:)#782
rommelst wants to merge 2 commits intoSOCI:masterfrom
rommelst:master

Conversation

@rommelst
Copy link
Copy Markdown
Contributor

Code changed for postgresql_statement_backend::prepare to not consider : as bind variable mark when inside postgresql identifier.

Copy link
Copy Markdown
Member

@vadz vadz left a comment

Choose a reason for hiding this comment

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

Thanks for the update!

It's fine to merge, IMO, but I'd like to get rid of exception-eating catch(...){} constructs -- unless they're really needed for some reason?

Comment thread tests/postgresql/test-postgresql.cpp Outdated
@rommelst rommelst requested a review from vadz January 28, 2020 15:49
@vadz
Copy link
Copy Markdown
Member

vadz commented Jan 30, 2020

Thanks again and sorry for the delay with merging this, but it's finally done now!

@vadz vadz closed this in 99d2606 Jan 30, 2020
ckroehnert added a commit to ckroehnert/soci that referenced this pull request Dec 3, 2020
vadz pushed a commit to vadz/soci that referenced this pull request Dec 3, 2020
This was broken by 99d2606 (Fix handling of identifiers with colons in
PostgreSQL backend, 2020-01-27), see SOCI#782.

Fix this and add a test checking for the use of such identifiers.

Closes SOCI#840.
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.

2 participants