Subject: | DBD-Pg-2.19.3 syntax error deallocating prepared statement |
Date: | Thu, 19 Sep 2013 22:25:23 +0000 |
To: | "bug-DBD-Pg [...] rt.cpan.org" <bug-DBD-Pg [...] rt.cpan.org> |
From: | Spencer Sun <ssun [...] arubanetworks.com> |
We have seen in very long-running processes where imp_dbh->prepare_number rolls over into negative number territory.
This then tickles the same sort of bug that was addressed in bug #34738.
Dec 12 14:49:31 localhost postgres[2607]: [10241-1] ERROR: 42601: syntax error at or near "-" at character 24
Dec 12 14:49:31 localhost postgres[2607]: [10241-2] LOCATION: scanner_yyerror, scan.l:1001
Dec 12 14:49:31 localhost postgres[2607]: [10241-3] STATEMENT: DEALLOCATE dbdpg_p2606_-2147474143
A proposed diff is attached which uses %x instead of %d.