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

Broken example on http://pqxx.org #26

Closed
jackc opened this issue Sep 2, 2017 · 1 comment
Closed

Broken example on http://pqxx.org #26

jackc opened this issue Sep 2, 2017 · 1 comment

Comments

@jackc
Copy link

jackc commented Sep 2, 2017

Not sure if this is right place to report, but didn't find anything else.

On http://pqxx.org/development/libpqxx/ the "Complete example" at the bottom doesn't compile. The for (auto row: r) row iteration is missing a closing brace.

Also, the catch statements at the bottom should be reversed as the pqxx::sql_error catch is unreachable because the std::exception will always catch it first.

@jtv
Copy link
Owner

jtv commented Sep 9, 2017

Thanks! Yes, this is the right place to report it. Fixed now.

@jtv jtv closed this as completed Sep 9, 2017
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

No branches or pull requests

2 participants