Actions
Defect #1759
openMigration from trac/postgresql fails with SQL error (probably important - postgres 8.3)
Defect #1759:
Migration from trac/postgresql fails with SQL error (probably important - postgres 8.3)
Resolution:
Fixed
Affected version:
Description
Migration from trac (with data in postgres database) ends with:
Migrating components...
Migrating milestones...
Migrating custom fields
Migrating tickets.rake aborted!
PGError: ERROR: operator does not exist: text = integer
LINE 1: ...CT * FROM "attachment" WHERE ("attachment".id = 1 AND (a...
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT * FROM "attachment" WHERE ("attachment".id = 1 AND (attachment.type = 'ticket'))
The same SQL fails when issued from psql, to have it working one must quote this identifier - WHERE ("attachment".id = "1" ....)
PS Postgres 8.3 is restrictive on datatypes....
Actions