Commit 8bf1e098 authored by Hiroshi Inoue's avatar Hiroshi Inoue

Use abbreviated connection string more widely.

This seems to fix the trouble with PowerBuilder
reported by Magbus Weber.
parent 15c21bf8
...@@ -506,7 +506,8 @@ makeConnectString(char *connect_string, const ConnInfo *ci, UWORD len) ...@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment