Use abbreviated connection string more widely.

This seems to fix the trouble with PowerBuilder
reported by Magbus Weber.
REL7_2_STABLE
Hiroshi Inoue 25 years ago
parent 15c21bf8e1
commit 8bf1e098dd
  1. 3
      src/interfaces/odbc/dlg_specific.c

@ -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",

Loading…
Cancel
Save