 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
FAN Guest
|
Posted: Fri Dec 10, 2004 9:17 am Post subject: Delphi 7 and Oracle 9i : TSQLQuery return FLOAT without deci |
|
|
Hi,
When running a query on Oracle 9i whith TSQLQuery, the float field where
return without decimal point.
Sample :
CREATE TABLE MYTABLE (V_FLT FLOAT);
INSERT INTO MYTABLE (V_FLT) VALUES (1.3);
SELECT V_FLT FROM MYTABLE;
SQLPlus return :
V_FLT
----------
1,3
TSQLQuery return : 13
Is someone have a solution ?
Best regards
FAN
|
|
| Back to top |
|
 |
Jan Doggen Guest
|
Posted: Fri Dec 10, 2004 9:29 am Post subject: Re: Delphi 7 and Oracle 9i : TSQLQuery return FLOAT without |
|
|
Try this:
http://groups-beta.google.com/groups?as_q=oracle%20float%20decimal&safe=imag
es&as_ugroup=borland.public.delphi.database.dbexpress&lr=&num=50&hl=en
Jan
"FAN" <fanteblian (AT) agenoria (DOT) com> wrote
| Quote: | Hi,
When running a query on Oracle 9i whith TSQLQuery, the float field where
return without decimal point.
Sample :
CREATE TABLE MYTABLE (V_FLT FLOAT);
INSERT INTO MYTABLE (V_FLT) VALUES (1.3);
SELECT V_FLT FROM MYTABLE;
SQLPlus return :
V_FLT
----------
1,3
TSQLQuery return : 13
Is someone have a solution ?
Best regards
FAN
|
|
|
| Back to top |
|
 |
FAN Guest
|
Posted: Fri Dec 10, 2004 3:16 pm Post subject: Re: Delphi 7 and Oracle 9i : TSQLQuery return FLOAT without |
|
|
Thank you for the link,
I have found a solution by this way.
Solution is inserting in Delphi :
SQLConnection.Execute('ALTER SESSION SET
NLS_NUMERIC_CHARACTERS=''.,''',nil,nil);
just after opening SQLConnection
Best regards
FAN
"Jan Doggen" <j.doggen (AT) BLOCKqsa (DOT) nl> a écrit dans le message news:
41b96c6f$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Try this:
http://groups-beta.google.com/groups?as_q=oracle%20float%20decimal&safe=imag
es&as_ugroup=borland.public.delphi.database.dbexpress&lr=&num=50&hl=en
Jan
"FAN" <fanteblian (AT) agenoria (DOT) com> wrote in message
news:41b9693c (AT) newsgroups (DOT) borland.com...
Hi,
When running a query on Oracle 9i whith TSQLQuery, the float field where
return without decimal point.
Sample :
CREATE TABLE MYTABLE (V_FLT FLOAT);
INSERT INTO MYTABLE (V_FLT) VALUES (1.3);
SELECT V_FLT FROM MYTABLE;
SQLPlus return :
V_FLT
----------
1,3
TSQLQuery return : 13
Is someone have a solution ?
Best regards
FAN
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|