mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Use abbreviated connection string more widely.
This seems to fix the trouble with PowerBuilder reported by Magbus Weber.
This commit is contained in:
@ -506,7 +506,8 @@ makeConnectString(char *connect_string, const ConnInfo *ci, UWORD len)
|
|||||||
char got_dsn = (ci->dsn[0] != '\0');
|
char got_dsn = (ci->dsn[0] != '\0');
|
||||||
char encoded_conn_settings[LARGE_REGISTRY_LEN];
|
char encoded_conn_settings[LARGE_REGISTRY_LEN];
|
||||||
UWORD hlen;
|
UWORD hlen;
|
||||||
BOOL abbrev = (len <= 400);
|
/*BOOL abbrev = (len <= 400);*/
|
||||||
|
BOOL abbrev = (len < 1024);
|
||||||
|
|
||||||
/* fundamental info */
|
/* fundamental info */
|
||||||
sprintf(connect_string, "%s=%s;DATABASE=%s;SERVER=%s;PORT=%s;UID=%s;PWD=%s",
|
sprintf(connect_string, "%s=%s;DATABASE=%s;SERVER=%s;PORT=%s;UID=%s;PWD=%s",
|
||||||
|
Reference in New Issue
Block a user