I have upgraded from 3.2.1 to 3.3.
I am using a form created in Base to input transaction details into a postgres database using the jdbc interface.
My problem is that when I input a $ amount into the transamount field this field is truncated in that only the dollar amount is inserted.
Your help would be much appreciated. This worked OK in 3.2.1. Test connection & Test class works OK.
Postgresql version 8.3.11 and postgresql-jdbc 8.3.603
Table field types below
transid serial NOT NULL,
transcode character varying(50),
transdate timestamp without time zone,
transdescription character varying(255),
transamount numeric,
CONSTRAINT tranststpk PRIMARY KEY (transid)
[Solved] PostgreSQL-JDBC numeric field truncated problem
[Solved] PostgreSQL-JDBC numeric field truncated problem
Last edited by awid on Sun Mar 06, 2011 4:27 am, edited 1 time in total.
LibreOffice 3.4.4 Build(402) Ubuntu 11.10
Re: PostgreSQL-JDBC numeric field truncatied problem
What type of form controls you use on transamount field?
Formatted field or Currency field?
Formatted field or Currency field?
AOO 4.0 and LibO 4 on Win 8
Hungarian forum co-admin
Hungarian forum co-admin
Re: PostgreSQL-JDBC numeric field truncatied problem
I am using a formatted field.
Formatting: Category - Number Format code #.00
thanks
Formatting: Category - Number Format code #.00
thanks
LibreOffice 3.4.4 Build(402) Ubuntu 11.10
Re: PostgreSQL-JDBC numeric field truncated problem
I think you use numeric type wrongly, not defined scale parameter: http://www.postgresql.org/docs/8.3/inte ... IC-DECIMAL
AOO 4.0 and LibO 4 on Win 8
Hungarian forum co-admin
Hungarian forum co-admin
Re: PostgreSQL-JDBC numeric field truncated problem
That was the problem - thanks for your help.
LibreOffice 3.4.4 Build(402) Ubuntu 11.10