Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014777Openbravo ERP00. Application dictionarypublic2010-10-06 10:492012-02-29 11:46
mirurita 
migueldejuana 
normalminoralways
closedout of date 
5
 
 
Core
No
0014777: Create columns from DB not working with columns of type text (PostgreSQL)
Error:
Column not inserted due to wrong data type: Errorcolumn. Created = 0
Create a table in PostgreSQL with a column of type text
CREATE TABLE TEST_TABLE
  TEST_TABLE_ID character varying(32) NOT NULL,
  AD_CLIENT_ID character varying(32) NOT NULL,
  ad_org_id character varying(32) NOT NULL,
  created timestamp without time zone NOT NULL DEFAULT now(),
  createdby character varying(32) NOT NULL,
  updated timestamp without time zone NOT NULL DEFAULT now(),
  updatedby character varying(32) NOT NULL,
  isactive character(1) DEFAULT 'Y'::bpchar,
  errorcolumn text,
  CONSTRAINT test_table_key PRIMARY KEY (test_table_id),
  CONSTRAINT test_ad_client_log FOREIGN KEY (ad_client_id) REFERENCES ad_client (ad_client_id),
  CONSTRAINT test_ad_org_log FOREIGN KEY (ad_org_id) REFERENCES ad_org (ad_org_id)
);

Go to Application Dictionary || Tables and Columns || Table and create a new table.

Click on Create Columns from DB
No tags attached.
related to defect 0011529 closed migueldejuana Create columns process suggests wrong references 
related to defect 0018646 closed alostale The "Create columns from table" process does not handle BYTEA columns 
Issue History
2010-10-06 10:49miruritaNew Issue
2010-10-06 10:49miruritaAssigned To => marvintm
2010-10-11 09:00alostaleStatusnew => scheduled
2010-10-11 09:00alostaleAssigned Tomarvintm => alostale
2010-10-11 09:00alostalefix_in_branch => pi
2012-02-28 16:49alostaleAssigned Toalostale => migueldejuana
2012-02-29 11:36migueldejuanaRelationship addedrelated to 0011529
2012-02-29 11:45migueldejuanaRelationship addedrelated to 0018646
2012-02-29 11:46migueldejuanaNote Added: 0045578
2012-02-29 11:46migueldejuanaStatusscheduled => closed
2012-02-29 11:46migueldejuanaResolutionopen => out of date

Notes
(0045578)
migueldejuana   
2012-02-29 11:46   
Working fine in current pi@10e3111439cc

Fixed by 0018646