Result::tuplesAffected now checks for empty string to prevent triggering
slow exception handling.
This commit is contained in:
parent
3af26d915e
commit
161de60eb1
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ int Result::tuplesAffected() const
|
|||
{
|
||||
int i;
|
||||
char * res = PQcmdTuples(result);
|
||||
if (res) {
|
||||
if (res && res[0] != '\0') {
|
||||
try {
|
||||
i = std::stoi(res);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue