Postgre Number Column

Hi

I’m migrating from Servoy 4.1.4 to Servoy 5.2.7

I have about 3000 warning + errors :(
But there are many error about database inconsistency.
I use PostgreSQL 9.0.
All the number columns have length 17,17 but in pgAdmin the length there isn’t. The column is double precision.
Why servoy read the length 17,17? ( in servoy 4 the length was 8 correctly ).

The same issue with media column ( in postgre are bytea type ).
An example of number column error is:

‘locale_bridgedata->clr_fatture_storico->importo_lordo_euro’ column difference. (NUMBER(id:8), length: 17, allowNull: true) in DB ↔ (NUMBER(id:8), length: 8, allowNull: true) in DB information file. The DB information on this column differs from the actual column in the DB.

If I create a number column from servoy 5 the column is created correctly in postgre. But if I exit and restart servoy, the column have length 17,17.
I tried to force the length column to 8 in servoy but is the same.
If I create a number column from pgAdmin, in servoy I see the column with length 17,17.

In attachment you can see how columns appears in servoy!!
[attachment=0]table column issue.JPG[/attachment]

I tried to set the last jdbc driver downloaded from http://jdbc.postgresql.org/download.html ( jdbc 4 ) but nothing.

I hope someone can help me!
Thanks in advance.
Bye
Roberto

Roberto,

The 17,17 comes from the driver, it reports double precision columns to Servoy as length=17, scale=17.
When you create a number column from Servoy the length is not used.

have you tried the quickfix from the context menu in the problems view (or hit ctl-1 on it)?

Rob

Thank you for the answer!

The quick fix options are:

  • Update Column Information
  • Replace DB Column…

[attachment=0]Quick Fix.JPG[/attachment]

Thank you

Roberto

No one can help me?? :(

Thank you guys!
Roberto

The error seems a PG driver error.

If I choose the fix "Update Column Information… " nothing change and the error disappears ( also after an installation on server ). :D

Thank you
Roberto

Roberto,

This writes the dbi files, so the mismatch is gone.

Rob