1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-22 12:22:45 +03:00

1) Avoid an overflow of connection string for Access(Microsoft Jet).

2) Change to retry lower version in case of "Unsupported frontend
procotol".
This commit is contained in:
Hiroshi Inoue
2001-09-21 07:51:52 +00:00
parent 6f33c179b9
commit 39dc8ff64f
8 changed files with 126 additions and 54 deletions

View File

@@ -1,5 +1,5 @@
/*-------
* Module: drvconn.c
Module: drvconn.c
*
* Description: This module contains only routines related to
* implementing SQLDriverConnect.
@@ -88,6 +88,7 @@ PGAPI_DriverConnect(
int retval;
char password_required = FALSE;
int len = 0;
SWORD lenStrout;
mylog("%s: entering...\n", func);
@@ -211,7 +212,10 @@ dialog:
*/
result = SQL_SUCCESS;
makeConnectString(connStrOut, ci, cbConnStrOutMax);
lenStrout = cbConnStrOutMax;
if (conn->ms_jet && lenStrout > 255)
lenStrout = 255;
makeConnectString(connStrOut, ci, lenStrout);
len = strlen(connStrOut);
if (szConnStrOut)