- Sivaprakash BKR
- PowerBuilder
- Sunday, 15 December 2019 02:30 AM UTC
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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.