We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd0b42 commit 83a53a2Copy full SHA for 83a53a2
README.md
@@ -156,7 +156,7 @@ Here's an example with all the basics to get you going:
156
// Execute a statement, and check that it returns 0 rows of data.
157
// This will throw pqxx::unexpected_rows if the query returns rows.
158
std::cout << "Doubling all employees' salaries...\n";
159
- tx.exec0("UPDATE employee SET salary = salary*2");
+ tx.exec("UPDATE employee SET salary = salary*2").no_rows();
160
161
// Shorthand: conveniently query a single value from the database.
162
int my_salary = tx.query_value<int>(
0 commit comments