Precision and scale of numeric column reported as value -1

Поиск
Список
Период
Сортировка
От Sergio Lob
Тема Precision and scale of numeric column reported as value -1
Дата
Msg-id 4241B656.15682C40@iwaysoftware.com
обсуждение исходный текст
Ответы Re: Precision and scale of numeric column reported as value  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-bugs
Bug to report - For a numeric in a table defined by:
CREATE TABLE SERG (F01NUM NUMERIC) ;
, the precision and scale reported by ResultSetMetaData.getScale() and
ResultSetMetaData.getPrecision() are value -1

Attached is a simple java program (Repro1.java) that repros the problem.

Before running repro, you must first create the table "SERG" in a
postgreSQL
database and then modify the url, userid and password in the program to
appropriate values. Notice that output from program shows precision =
-1, scale = -1

Please note that the problem occurs for NUMERIC columns whose precision
and scale are not explicitely stated. For example a column defined as
NUMERIC(10,2) returns a correct precision and scale.

Thanks, Sergio Lob

Вложения

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1518: Conversions to (undocumented) SQL year-month and
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] contrib module intagg crashing the backend