Problem with numeric() type.
Posted: Thu 14 May 2009 11:41
Hi...
I have a program, here in Brazil, and my company decided to use PostgreSQL. Our program use more than 2000 tables in the database, and to be more easy we use Domaind to keep the database.
So I find your component and I was testing, when I found 1 problem.
When I have a table without using "DOMAINS", I can commit numeric values ( ex: U$ 15.35 ).
But, I have a table with "DOMAINS" i got the error like "coulnd't insert numeric value: 15,35".
Important: in Brazil, the numeric value formating is: 9.999.999,00 (with "," separeting decimals).
Well, I use PostgreSQL 8.3.7 with Delphi 7.
To show the problem to you, i make one example to download.
Into the example has the SQL, pas and dpf files...
link: http://cid-a5abaf4bf1d62480.skydrive.li ... -DENIS.zip
But, remenber, your windows need to use the monetary patterns from Brazil. US pattern works!
Maybe I'm doing something wrong. It's a possible too...
Dennnis.
PS: Sorry about my english. I'm learning yet. I hope you understand.
-----------------
Edit (2009-05-19):
I test this problem with another driver and I don't get this problem.
Your driver is more fastest than the other one, but have this problem...
I have a program, here in Brazil, and my company decided to use PostgreSQL. Our program use more than 2000 tables in the database, and to be more easy we use Domaind to keep the database.
So I find your component and I was testing, when I found 1 problem.
When I have a table without using "DOMAINS", I can commit numeric values ( ex: U$ 15.35 ).
But, I have a table with "DOMAINS" i got the error like "coulnd't insert numeric value: 15,35".
Important: in Brazil, the numeric value formating is: 9.999.999,00 (with "," separeting decimals).
Well, I use PostgreSQL 8.3.7 with Delphi 7.
To show the problem to you, i make one example to download.
Into the example has the SQL, pas and dpf files...
link: http://cid-a5abaf4bf1d62480.skydrive.li ... -DENIS.zip
But, remenber, your windows need to use the monetary patterns from Brazil. US pattern works!
Maybe I'm doing something wrong. It's a possible too...
Dennnis.
PS: Sorry about my english. I'm learning yet. I hope you understand.
-----------------
Edit (2009-05-19):
I test this problem with another driver and I don't get this problem.
Your driver is more fastest than the other one, but have this problem...