On Fri, November 25, 2005 05:35, Roger Leigh wrote:

> libpqxx shows three testcase failures when building with
> * libpq4 (8.1.0)
> * GCC 4.0.3 (g++ (GCC) 4.0.3 20051111 (prerelease) (Debian 4.0.2-4))
>
> The full build log is attached.  The failures are
> * test016
> * test018
> * test035

These failures all occur while setting up a robust_transaction, and should
not affect code that does not use this particular class.  A workaround is
to use a regular transaction instead (no other changes needed).

A possible cause of this failure is that tables in PostgreSQL no longer
contain an implicit oid column by default.  The failing code creates a
table and expects it to contain this column.  The problem has been worked
around in the 2.6.x development series for some time.

A complication is that the new syntax for including this column is not
compatible with the older backend versions, whereas other solutions would
require schema changes.

A workaround with relatively little impact would be to edit
src/robusttransaction.cxx, and:

1. replacing all "oid" with a new identifier, say "tid"
2. adding a column "tid SERIAL" in the CREATE TABLE for the log table
3. changing the transaction log table's name throughout the source file

This adds a new table.  Which is not pretty, but the advantage is that it
does not require the column to be added to a possibly already existing
table.


Jeroen




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to