Hello,
Using PB 2017 R3, Postgresql 11.6
By using the query
Select a.itemcode as code, a.value as value, a.itemname as name, a.version as version
From tablex a
Union All
Select '' as codem, 0 as value, b.name as name, '001' as version
From tabley b
a.itemcode - Column type varchar(10)
a.value - column type numeric(17,2)
a.itemname & b.name - Column type varchar(40)
a.version - Column type varchar(3)
By using the above query, the column sizes in datawindow changes to [ viewed through View - Column specifications ]
itemcode - char(255)
value - decimal(6)
name - Char(40)
version - char(255)
For columns itemcode, value & version the length & decimal precision increases. We need to correct it using source editor, every time we make changes in the query of these datawindows. Column name's length doesn't change, as we select a column from db, in both queries.
This issue is only when we use empty or null or 0 or 0.00 values instead of db columns in the query.
We didn't face this issue in Sql server & PB 11.5 combo.
Why this change happens ? Is there any way to correct this ?
Happiness Always
BKR Sivaprakash
I'll try this cast and let u know.
All data types needs casting.. DONE.
Thanks Markus Eckert.