psql \COPY accepts multiple NULL AS

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема psql \COPY accepts multiple NULL AS
Дата
Msg-id 20070727045028.GG4887@tamriel.snowman.net
обсуждение исходный текст
Ответы Re: psql \COPY accepts multiple NULL AS  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-bugs
Greetings,

  psql seems to accept syntax which would be rejected by the server,
  which seems a bit odd:

  sfrost*=3D# \copy billing_data from ../BillingSamplePricerFile.csv
            with csv header quote as '"' null as 'abc' null as '123'
  ERROR:  invalid input syntax for integer: ""

  vs.

  sfrost=3D# copy billing_data from stdin=20
           with csv header quote as '"' null as 'abc' null as '123';
  ERROR:  conflicting or redundant options

  Now, honestly, I'd like to see support for multiple 'NULL AS' strings,
  but till that's added it'd probably be best if psql error'd on this
  like the backend does rather than accepting it and then not doing it.

      Thanks!

        Stephen

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: bug with RE
Следующее
От: Siraj Khan
Дата:
Сообщение: Help on clarification of supported platform for Postgres 8.2