[ic] PostgreSQL AUTO_SEQUENCE
greg at valuemedia.com
Tue Aug 3 10:45:53 EDT 2004
>I set up MySQL with IC 5.0 very easily, but setting up
>PostgreSQL on 5.2 has been more difficult. The last
>hump I need to get over is the AUTO_SEQUENCE
>functionality for my order_items table.
>Mike suggests the following:
>Database order_items COLUMN_DEF "id=int default
>and I've read the PostgreSQL CREATE SEQUENCE docs
>which caused me to try adding:
>Database order_items CREATE_SEQUENCE
>order_items_sequence START 2000
>in addition to Mike's suggestion. I also have:
>Database order_items AUTO_SEQUENCE 1
>in my catalog.cfg, but I can't seem to get IC to
>AUTO_SEQUENCE properly. I get errors like this in my
>//admin/flex_editor DBD::Pg::st execute failed: ERROR:
> Relation "1" does not exist at
>/usr/local/interchange/lib/Vend/Table/DBI.pm line 942.
>Does anyone have any tips for me?
Did you actually create the sequence in your database?
CREATE SEQUENCE order_items_sequence START 2000;
Make sure that it is actually in your database and functioning.
In your database try something like:
Make sure you get something returned.
The error you got seems to indicate its not finding the sequence.
>Do you Yahoo!?
>New and Improved Yahoo! Mail - Send 10MB messages!
>interchange-users mailing list
>interchange-users at icdevgroup.org
1506 E Gilbert Ave
Coeur d'Alene, ID 83815
Email greg at perusion.com
Toll Free 800-949-1889
More information about the interchange-users