[rt.cpan.org #20447] Different in getline function removing new lines
"Michael_G_Schwern via RT" <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.dbdpg |
|---|---|
| Message-ID | <[email protected]> |
Queue: DBD-Pg
Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=20447 >
On Thu Jul 13 14:52:08 2006, [email protected] wrote:
> The behavior of getline is different depending on if the old PQgetline
> or new PGgetCopyData functions are used. The old interface removed the
> "\n" at the end of the line. The new interface leaves the "\n" at the
end.
>
> This is a regression between old versions of DBD::Pg. And will be
> different when old versions of libpq are used with DBD::Pg 1.49.
To make it clear, we like the new interface where it leaves the "\n" on
the end. It the fact that the interface changed which is the problem.
At the very least DBD::Pg->pg_getline should behave the same no matter
what internal pg function it uses.