Hello,
I exported a Solution from 6.0.4 which contains a table with a field ninprnabkfr with 2 decimals ( numeric(12,2) )
the postgres definition with pgadmin III looks like:
CREATE TABLE adpg
(
view fields.....
mutuser character varying(3) NOT NULL,
id serial NOT NULL,
ninprnabkfr numeric(12,2),
sollbet integer,
err_grpziel character varying(1),
grpleit_pers integer,
..... more fields
CONSTRAINT adpg_pkey PRIMARY KEY (id )
After import in 6.1.0 i get the error :
localhost_pg_lohnplus->adpg->ninprnabkfr" column difference. (NUMBER(id:2), length: 19, scale: 2, allowNull: true) in DB <-> (NUMBER(id:2), length: 12, allowNull: true) in DB information file. The DB information on this column differs from the actual column in the DB. adpg.dbi /resources/datasources/localhost_pg_lohnplus JSON file Database information inconsistency
So the difference is the scale: 2
I checked the solution-exportfile and found the definition
- <column creation_order_index="13">
<name>ninprnabkfr</name>
<datatype>2</datatype>
<length>12</length>
<allow_null>1</allow_null>
<system_value>-1</system_value>
this is how it looks in servoy 6.0.4 befor export
[attachment=1]Print_Screen_01062.jpg[/attachment]
this is how it looks in servoy 6.1.0 after import
[attachment=0]Print_Screen_01061.jpg[/attachment]
and interesting:
I let Servoy 6.1.0 create all fields in an new, blank, empty database douring import solution. The new table
contans a field with the following size:
ninprnabkfr numeric(19,2),
Question 1:
Is scale: 2 for numeric fields supported in 6.0.x ?
Question 2:
I tried to add a new numeric field in servoy 6.1.0 with decimals 2 (scale: 2) but servoy also changes it to field length 0
Is scale: 2 for numeric fields supported in 6.1.0 ?
thank you for any ideas
regards

