Error Report on ODBC Connect Dialog

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

Error Report on ODBC Connect Dialog

От:
Marko Ristola <Marko.Ristola@kolumbus.fi>
Дата:

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" <dpage@vale-housing.co.uk>
Дата:
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
> 
FAQ