![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The following bug has been logged online: Bug reference: 2496 Logged by: Heinz-Peter Heidinger Email address: hph (AT) comserve-it-services (DOT) de PostgreSQL version: 8.x Operating system: all (Linux & Win was tested) Description: Troubles with fixed-point types (NUMERIC, DECIMAL,...) Details: OpenOffice 1.x/2.x & StarOffice7/..8 cannot write fixed-point values (NUMERIC|DECIMAL) to a PGSQL database when using a JDBC interface and a desktop locale of 'german' (maybe others as well) is used. The resulting message is: ERROR: column <XXX> has type numeric but expression has type character varying. |
#3
| |||
| |||
|
|
Hello William, Am Di, den 27.06.2006 schrieb William ZHANG um 17:01: Can you set "log_statement" in postgresql.conf and post the logged statements? Sure. See the appended screen-shot "Whole-screen.png" Also appended is the postgresql.conf The quirk happens with fixed-pointcoloums (DECIMAL, NUMERIC, MONEY) and BOOLEAN coloums as well when using the JDBC abstraction layer in locale 'German' (and maybe all others than 'C' or 'en_US' as well) Table definition: comserve=> \c junk Sie sind jetzt mit der Datenbank »junk« verbunden. junk=> \d Liste der Relationen Schema | Name | Typ | Eigentümer --------+-------------+---------+------------ public | Tabelle1 | Tabelle | comserve public | junk | Tabelle | comserve public | junk_id_seq | Sequenz | comserve (3 Zeilen) junk=> \d junk Tabelle »public.junk« Spalte | Typ | Attribute --------+--------------+------------------------------------------------------ id | integer | not null default nextval('public.junk_id_seq'::text) preis | numeric(5,2) | Indexe: »junk_pkey« PRIMARY KEY, btree (id) junk= If you need further assistance: just let me know! I hope we can cut down this bad finger, since an Office-System that cannot store business figures to a DB doesn't make much sense - at least with that specific DBMS. Thanks for your concern anyway. With regards, William ZHANG Best regards, Peter Heidinger -- ----------------------------------------------------------------- ComServe - IT-Services Think IT, Plan IT, Do IT! Steeler Str. 121 45138 Essen ------------------------------------------------------------- Professionelle Unix- & Linux-Lösungen ------------------------------------------------------------- * Unix-Systemtechnik * Linux-Unternehmenslösungen (AIX, HPUX, Solaris, Linux) * Linux-Server & -Cluster * Hochverfügbarkeitssysteme * Linux-Virtual-Server * Proaktive Security-Konzepte * Enterprise-Backup-Konzepte mit Tivoli-Storage-Manager ----------------------------------------------------------------- Telefon : +49 (201) 319-9875 Fax : +49 (201) 319-9876 Mobil : 0160/6111-819 http://ComServe-IT-Services.de ----------------------------------------------------------------- |
![]() |
| Thread Tools | |
| Display Modes | |
| |