Re: [BUGS] COPY when 'filename' is a directory

Поиск
Список
Период
Сортировка
От Brent Verner
Тема Re: [BUGS] COPY when 'filename' is a directory
Дата
Msg-id 20020224015622.GA22891@rcfile.org
обсуждение исходный текст
Ответ на Re: [BUGS] COPY when 'filename' is a directory  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [BUGS] COPY when 'filename' is a directory  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
[2002-02-23 20:27] Tom Lane said:
| Bruce Momjian <pgman@candle.pha.pa.us> writes:
| >           {
| > +       struct stat st;
| >               fp = AllocateFile(filename, PG_BINARY_R);

| > +         fclose(fp);
|
| This coding is WRONG.  You do not use fclose() to release a file
| opened with AllocateFile.

  s/fclose/FreeFile/

hiding in shame,
  brent

--
"Develop your talent, man, and leave the world something. Records are
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing."  -- Duane Allman

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] COPY when 'filename' is a directory
Следующее
От: Brent Verner
Дата:
Сообщение: Re: [BUGS] COPY when 'filename' is a directory