Subject: | Update statements with rules |
Date: | Sat, 26 May 2018 15:55:46 +0200 |
To: | bug-DBD-Pg [...] rt.cpan.org |
From: | Maroš Kollár <maros [...] k-1.com> |
I'm not sure if this is a genuine bug or if i'm using DBD::Pg in a wrong
way, but I can't seem to be able to read records returned by an update
statement altered by rules. The rule returns an additional row on a
successful update. However using fetch on this statement handle throws an
exception.
See the following test example
https://0bin.net/paste/Y1tUMJycJCXt777W#rpOv7GG2iz448pyEiGjzjmL8lxQrXf6Mg7rKlfmLCHb
Issuing the same statements via psql works fine and returns both the
affected row count as well as the extra rows added by the rule.
Cheers
Maroš