pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to detect float format by passing SQL_CHAR to float column ?
2+ messages / 2 participants
[nested] [flat]
* How to detect float format by passing SQL_CHAR to float column ?
@ 2006-01-19 15:27 lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>
0 siblings, 1 reply; 2+ messages in thread
From: lothar.behrens@lollisoft.de @ 2006-01-19 15:27 UTC (permalink / raw)
To: pgsql-odbc
Hi,
as the documentation of postgresql, there is a floating point format
like 10.1234 but I do not see
10,1234. Is that ever like the documentation ?
The issue is because I pass a SQL_CHAR value from a GUI text control
that allows also a comma
in the string.
If there are commas possible, how do I detect it ?
Thanks, Lothar
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How to detect float format by passing SQL_CHAR to float column ?
@ 2006-01-19 15:39 Tom Lane <tgl@sss.pgh.pa.us>
parent: lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2006-01-19 15:39 UTC (permalink / raw)
To: lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>; +Cc: pgsql-odbc
"lothar.behrens@lollisoft.de" <lothar.behrens@lollisoft.de> writes:
> as the documentation of postgresql, there is a floating point format
> like 10.1234 but I do not see
> 10,1234. Is that ever like the documentation ?
No, we deliberately do not support locale-dependent numeric styles.
At least not in simple data entry --- IIRC, you can convert such
strings with to_char()/to_number().
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-01-19 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-19 15:27 How to detect float format by passing SQL_CHAR to float column ? lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>
2006-01-19 15:39 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox