Project

General

Profile

Actions

Defect #1759

open

Migration from trac/postgresql fails with SQL error (probably important - postgres 8.3)

Added by Marcin Kasperski over 16 years ago. Updated almost 12 years ago.

Status:
Needs feedback
Priority:
Normal
Category:
Importers
Target version:
-
Start date:
2008-08-08
Due date:
% Done:

0%

Estimated time:
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

Also available in: Atom PDF