Обсуждение: Error Report on ODBC Connect Dialog

Поиск
Список
Период
Сортировка

Error Report on ODBC Connect Dialog

От
Marko Ristola
Дата:
CVS branch: HEAD

dlg_specific.c:

function makeConnectString().

There is a big sprintf() with about 63 arguments,
on line 63.

gcc -Wall responded:
dlg_specific.c: In function `makeConnectString':
dlg_specific.c:126: warning: too many arguments for format

The warning goes away, if I add the following
into the format string:
";%s=%d"

So the following definition is not delivered on connect:
"LowerCaseIdentifier=%d",ConnInfo.lower_case_identifier


Marko Ristola



Re: Error Report on ODBC Connect Dialog

От
"Dave Page"
Дата:
Thanks, patch applied.

Regards, Dave.

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Marko Ristola
> Sent: 11 July 2005 11:17
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] Error Report on ODBC Connect Dialog
>
>
> CVS branch: HEAD
>
> dlg_specific.c:
>
> function makeConnectString().
>
> There is a big sprintf() with about 63 arguments,
> on line 63.
>
> gcc -Wall responded:
> dlg_specific.c: In function `makeConnectString':
> dlg_specific.c:126: warning: too many arguments for format
>
> The warning goes away, if I add the following
> into the format string:
> ";%s=%d"
>
> So the following definition is not delivered on connect:
> "LowerCaseIdentifier=%d",ConnInfo.lower_case_identifier
>
>
> Marko Ristola
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>