Subject: | Sequence setup failure with CDBI::Pg 0.08 and PostgreSQL 8.1.3 |
Using CDBI::Pg to set up tables in PostgreSQL breaks in certain cases.
I've narrowed down the issue to what I think is a typo in the PG8.1
NextVal regexp logic. On line 60, the code currently is:
$nextval_str =~ m!^nextval\(\("?([^"']+)"?'::text\)?::regclass\)!i ?
I think it should be:
$nextval_str =~ m!^nextval\(\('"?([^"']+)"?'::text\)?::regclass\)!i ?
to match the line above it. Added the additional single quote at the
start seems to fix the setup problems.