Re: BUG #1643: dbf2pg broken + quick fix

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1643: dbf2pg broken + quick fix
Дата
Msg-id 12065.1115154932@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1643: dbf2pg broken + quick fix  ("Boris van Schooten" <schooten@cs.utwente.nl>)
Ответы Re: BUG #1643: dbf2pg broken + quick fix
Список pgsql-bugs
"Boris van Schooten" <schooten@cs.utwente.nl> writes:
> As it turns out, the integer checking code (contrib/dbase/dbf2pg.c, function
> isinteger) is broken.  It appears the function reports 0 in case it finds a
> space in the dbf rather than a digit.  I disabled it (always made it return
> 1).  Now, my dbf files import fine.

Hmm.  I know nothing about dbase ... but if the test has any use at all,
I guess it must be to handle NULL values.  How does dbase represent a
NULL?  Why is this code only checking this for integer columns?

            regards, tom lane

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