Re: copy 5.3000000000e+01 to bigint column error while Insert ok

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: copy 5.3000000000e+01 to bigint column error while Insert ok
Дата
Msg-id 526F5A67.4090109@hogranch.com
обсуждение исходный текст
Ответ на copy 5.3000000000e+01 to bigint column error while Insert ok  (Jov <amutu@amutu.com>)
Ответы Re: copy 5.3000000000e+01 to bigint column error while Insert ok  (Jov <amutu@amutu.com>)
Список pgsql-general
On 10/28/2013 11:34 PM, Jov wrote:
when use insert command,we can insert 5.3000000000e+01 to table,but when use copy command,we get this:
ERROR:  invalid input syntax for integer: "'5.3000000000e+01'"
CONTEXT:  COPY tdsort_metrics, line 1, column monitor_value: "'5.3000000000e+01'"

any idea?

that number is clearly a floating point number.   INSERT takes expressions, and will cast the float to bigint, COPY doesn't and won't.


-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast

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

Предыдущее
От: Jov
Дата:
Сообщение: copy 5.3000000000e+01 to bigint column error while Insert ok
Следующее
От: Jov
Дата:
Сообщение: Re: copy 5.3000000000e+01 to bigint column error while Insert ok