Lightning Admin Community Forums
September 09, 2010, 05:33:16 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Version 1.3.4 Build 20 released on January 16th, 2007
Home
Help
Login
Register
Lightning Admin Community Forums
>
PostgreSQL
>
CodeGear Delphi and PostgreSQL
>
Client Configuration
Pages: [
1
]
« previous
next »
Reply
|
Print
Author
Topic: Client Configuration (Read 2757 times)
Didier
Guest
Client Configuration
«
on:
November 20, 2007, 12:32:57 PM »
Quote
Hello,
I am connecting to PostgreSQL using the components from SQL-DIRECT which I have used with great success on other databases (Sybase, Firebird, SqlServer ....). When I connect in ODBC mode then everything works fine, when I connect directly to the pgsql drivers, I lack some configuration capabilities and I am trying to find the SET ... command equivalent but after several hours of searching I am getting nowhere; hence my question here.
My main issue is that I am using a French Windows XP, which international configuration has been altered. Normal French decimal separator is comma and thousands separator is space (e.g. 10000 is written 10 000,00). For loads of reason, I always reconfigure it to be like the UK config :
full-stop as decimal separator and comma as thousands separator. (e.g. 10000 is written 10,000.00). In this altered configuration, I get an error message when reading floating points numbers. For example the database value is 75 the error message is error converting '75 00' to a floating point value.
How can I set the decimal separator to use on my connection ?
Please note that I am very new to PostgreSQL so please forgive me if the question is really stupid, but I am very stuck with this.
Didier
Logged
Support Administrator
Administrator
PGLA Level3
Posts: 214
Re: Client Configuration
«
Reply #1 on:
November 23, 2007, 07:15:55 AM »
Quote
Hi,
I think you would need to set the following for your locale:
lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
lc_numeric = 'en_US.UTF-8 # locale for number formatting
Be sure to read Client Connection Defaults here:
http://www.postgresql.org/docs/8.2/interactive/runtime-config-client.html
That should get you going.
Hope that helps,
Tony
Logged
didiergm
Guest
Re: Client Configuration
«
Reply #2 on:
November 25, 2007, 01:32:47 AM »
Quote
It did, thanks
Didier
Logged
Pages: [
1
]
Reply
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Lightning Admin
-----------------------------
=> Announcements
=> Lightning Admin/Postgresql HowTo
-----------------------------
PostgreSQL
-----------------------------
=> General Postgresql Questions
=> Postgresql Function Repository
===> MS Access to PGSQL Functions
===> String manipulation functions
=> CodeGear Delphi and PostgreSQL
=> Lightning PL/pgSQL Debugger Client
-----------------------------
General Category
-----------------------------
=> General Discussion
Loading...