We noticed that since we have used Sybase iAnywhere 11 (before we was using version 10), NUMBER fields created in Servoy are being created as FLOAT in database. When we used Sybase iAnywhere 10, number fields was being created as DOUBLE in database.
Example:
[attachment=0]formFields.JPG[/attachment]
Price 1/price_1 field (NUMBER column created in Servoy “over” Sybase 10):
created in database as DOUBLE
grammage field (NUMBER column created in Servoy “over” Sybase 11):
This is a coincedence, I just posted the same thing!
We also have this “changing” behavior.
Our NUMBERs are created as DOUBLE in the database (sybase 11)
The behaviour (at this moment) is Number in javascript, double in the database.
But the big question is: is this behaviour going to change again? Because that is what happened recently, it changed from double to float to double again…
When creating Number columns (which is float in java) we use the standard mapping defined by hibernate.
For sybase this maps to ''float" in the sql.
In sybase ianywhere <= 10 the created column is a double (jdbc type 8 )
In sybase ianywhere 11 this was changed to real (jdbc type 7)
We have overridden the mapping for sybase ianywhere 11 in Servoy 5.1 to ‘double precision’ to get back the same behaviour of older sybase versions. The created column is now a double (jdbc type 8 ) again