Menu

#84 DB2 DECFLOAT values shown as <Other>

SQuirreL
closed
nobody
5
2019-11-16
2016-09-21
No

Hi,

I'm using Squirrel (snapshot-20160108_2306) against a DB2 10.5.7 LUW database where we have some columns with data type DECFLOAT.
Squirrel shows these values as <Other> instead with their numeric representation.
getColumnClassName is java.math.BigDecimal
getColumnType is 1111

As test you can use

select
cast(176.8 as DOUBLE) as value1,
cast(176.8 as DECFLOAT(34)) as value2 ,
cast(176.8 as DECFLOAT(16)) as value3
FROM sysibm.SYSDUMMY1

I've seen that there was a comment about DECFLOAT in the mailing list back in 2015 but I haven't found any other hint.

Kind regards

Georg

Discussion

  • Gerd Wagner

    Gerd Wagner - 2016-09-24

    You created a patch ticket but there is no attachment. Did you forget to upload your patch?

     
  • Georg Hartmann

    Georg Hartmann - 2016-09-24

    Hello Gerd,
    unfortunately I didn't recognize that the categories also belong to "create ticket".
    I just wanted to open a ticket to ask whether this behavior is a bug or intended, as I've seen this entry in the mailing list that announced a patch for this data type.

    Kind regards
    Georg

     
  • Pablo Gus

    Pablo Gus - 2018-03-22

    Hi all,

    Is there any solution for this issue? We have the same situation here. We update Squirrel to the latest version and still happening.

    Thanks! Regards,
    Pablo.

     
  • Gerd Wagner

    Gerd Wagner - 2019-11-14

    Cannot be reproduced on "DB2 UDB for AS/400", see http://pub400.com/, and driver "AS/400 Toolbox for Java JDBC Driver"

     
  • Gerd Wagner

    Gerd Wagner - 2019-11-16
    • status: open --> closed
     
  • Gerd Wagner

    Gerd Wagner - 2019-11-16

    Sorry, now I can reproduce your problem even on DB2 for AS 400.

    Please go to menu File -> Global Preferences -> tab Data Type Controls -> section SQL Other and check "Read contents when table is first loaded and display as string"

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.