Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009779Openbravo ERP00. Application dictionarypublic2009-07-06 17:272009-10-23 00:00
roklenardic 
alostale 
urgentmajoralways
closedfixed 
20Ubuntu 9.04
2.50MP2 
 
Core
No
0009779: Create columns from DB bugs
Create columns from DB process within Table & Column window detects the following types wrong with postgres database

1) planned_nights numeric(2) NOT NULL DEFAULT 1
gets detected as
String 131072

2) final_sum numeric
gets detected as
String -5

3) date_in timestamp without time zone NOT NULL
gets detected as
String 19
Use this create table statement

CREATE TABLE hotel_stay
(
  hotel_stay_id character varying(32) NOT NULL,
  ad_client_id character varying(32) NOT NULL,
  ad_org_id character varying(32) NOT NULL,
  isactive character(1) NOT NULL DEFAULT 'Y'::bpchar,
  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,
  hotel_room_id character varying(32) NOT NULL,
  hotel_guest_id character varying(32) NOT NULL,
  date_in timestamp without time zone NOT NULL,
  planned_nights numeric(2) NOT NULL DEFAULT 1,
  date_out timestamp without time zone,
  room_rate varchar(60) NOT NULL,
  final_sum numeric,

  CONSTRAINT hotel_stay_key PRIMARY KEY (hotel_stay_id),
  CONSTRAINT adclient_hotelstay FOREIGN KEY (ad_client_id)
      REFERENCES ad_client (ad_client_id),
  CONSTRAINT adorg_hotelstay FOREIGN KEY (ad_org_id)
      REFERENCES ad_org (ad_org_id),
  CONSTRAINT hotelroom_hotelstay FOREIGN KEY (hotel_room_id)
      REFERENCES hotel_room (hotel_room_id),
  CONSTRAINT hotelguest_hotelstay FOREIGN KEY (hotel_guest_id)
      REFERENCES hotel_guest (hotel_guest_id)
);
No tags attached.
related to defect 0010428 closed alostale Create columns from DB process should check that the common columns are present 
related to defect 0011056 closed rafaroda Create columns from db 
jpg NumericDetect.jpg (49,254) 2009-07-06 18:03
https://issues.openbravo.com/file_download.php?file_id=1518&type=bug
jpg

jpg NumericDetect1.jpg (41,390) 2009-07-06 18:03
https://issues.openbravo.com/file_download.php?file_id=1519&type=bug
jpg
Issue History
2009-07-06 17:27roklenardicNew Issue
2009-07-06 17:27roklenardicAssigned To => rafaroda
2009-07-06 18:03roklenardicFile Added: NumericDetect.jpg
2009-07-06 18:03roklenardicFile Added: NumericDetect1.jpg
2009-07-20 23:06psarobeAssigned Torafaroda => alostale
2009-07-20 23:06psarobePrioritynormal => urgent
2009-07-20 23:06psarobeSeverityminor => major
2009-07-20 23:06psarobeStatusnew => scheduled
2009-10-06 09:37alostaleRelationship addedrelated to 0010428
2009-10-06 15:33hgbotCheckin
2009-10-06 15:33hgbotNote Added: 0020789
2009-10-06 15:33hgbotStatusscheduled => resolved
2009-10-06 15:33hgbotResolutionopen => fixed
2009-10-06 15:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/21a9fa7d2fdb7a6a9074116e481cf24aae161d30 [^]
2009-10-21 15:22rafarodaRelationship addedrelated to 0011056
2009-10-22 11:22plujanStatusresolved => closed
2009-10-23 00:00anonymoussf_bug_id0 => 2884242

Notes
(0020789)
hgbot   
2009-10-06 15:33   
Repository: erp/devel/pi
Changeset: 21a9fa7d2fdb7a6a9074116e481cf24aae161d30
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Oct 06 15:32:40 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/21a9fa7d2fdb7a6a9074116e481cf24aae161d30 [^]

fixed bug 09779: Create columns from DB bugs

---
M src-db/database/model/functions/AD_TABLE_IMPORT.xml
---