Index: openacs-4/packages/ecommerce/www/shopping-cart-add-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/shopping-cart-add-postgresql.xql,v diff -u -r1.4 -r1.5 --- openacs-4/packages/ecommerce/www/shopping-cart-add-postgresql.xql 26 May 2002 04:36:50 -0000 1.4 +++ openacs-4/packages/ecommerce/www/shopping-cart-add-postgresql.xql 22 Sep 2008 10:03:38 -0000 1.5 @@ -28,7 +28,7 @@ insert into ec_items (item_id, product_id, color_choice, size_choice, style_choice, order_id, in_cart_date) - (select ec_item_id_sequence.nextval, :product_id, :color_choice, :size_choice, :style_choice, :order_id, current_timestamp + (select nextval('ec_item_id_seq') as nextval, :product_id, :color_choice, :size_choice, :style_choice, :order_id, current_timestamp where not exists (select 1 from ec_items where order_id=:order_id