Re: Using the new libpq connection functions in PostgreSQL binaries

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Using the new libpq connection functions in PostgreSQL binaries
Дата
Msg-id 25604.1264955749@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Using the new libpq connection functions in PostgreSQL binaries  (Guillaume Lelarge <guillaume@lelarge.info>)
Ответы Re: Using the new libpq connection functions in PostgreSQL binaries  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgsql-hackers
Guillaume Lelarge <guillaume@lelarge.info> writes:

>        */
>       do
>       {
> +         const char *values[] = {
> +                   my_opts->hostname,
> +                   my_opts->port,
> +                   my_opts->dbname,
> +                   my_opts->username,
> +                   password,
> +                   "oid2name",
> +                   NULL
> +               };
> +         
>           new_pass = false;

Is that really legal C89 syntax?  I seem to recall that array
constructors can only be used for static assignments with older
compilers.

Also, as a matter of style, I find it pretty horrid that this isn't
immediately adjacent to the keywords array that it MUST match.
        regards, tom lane


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: odd output in initdb
Следующее
От: Tom Lane
Дата:
Сообщение: Re: odd output in initdb