Use abbreviated connection string more widely.

This seems to fix the trouble with PowerBuilder
reported by Magbus Weber.
This commit is contained in:
Hiroshi Inoue 2001-11-11 07:24:36 +00:00
parent 15c21bf8e1
commit 8bf1e098dd
1 changed files with 2 additions and 1 deletions

View File

@ -506,7 +506,8 @@ makeConnectString(char *connect_string, const ConnInfo *ci, UWORD len)
char got_dsn = (ci->dsn[0] != '\0');
char encoded_conn_settings[LARGE_REGISTRY_LEN];
UWORD hlen;
BOOL abbrev = (len <= 400);
/*BOOL abbrev = (len <= 400);*/
BOOL abbrev = (len < 1024);
/* fundamental info */
sprintf(connect_string, "%s=%s;DATABASE=%s;SERVER=%s;PORT=%s;UID=%s;PWD=%s",