Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82389

Conversion to Decimal Issue

$
0
0

In one of my apps, we just encountered an issue with converting Float Attributes to Decimal. I just reproduced the issue in a small test project. The scenario is as follows:

  • I have an app which points to a database called TestDB (database is Postgres)
  • This app has an entity with a Float attribute, called Quantity
  • This app has Main Line and one branch called TestBranch
  • I start Main Line and add some objects to my entity with values for Quantity
  • In TestBranch, I change attribute Quantity to Decimal type
  • I run TestBranch using database TestDB, Quantity has the values I entered while running Main Line
  • Now I discover an unrelated problem with TestBranch and decide to redeploy Main Line
  • After running Main Line (using the same database, TestDB), the values of attribute Quantity are all 0.00

If this happens on my development environment, no problem, I just create a new database and begin working again. However, if this is my Production instance in the cloud, it presents a problem, because I may lose a lot of data.

Is this expected behavior? Is this scenario described in documentation that I missed? Or did I do something wrong?


Viewing all articles
Browse latest Browse all 82389

Trending Articles