Skip to content

Commit 8bf1e09

Browse files
author
Hiroshi Inoue
committed
Use abbreviated connection string more widely.
This seems to fix the trouble with PowerBuilder reported by Magbus Weber.
1 parent 15c21bf commit 8bf1e09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/interfaces/odbc/dlg_specific.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ makeConnectString(char *connect_string, const ConnInfo *ci, UWORD len)
506506
char got_dsn = (ci->dsn[0] != '\0');
507507
char encoded_conn_settings[LARGE_REGISTRY_LEN];
508508
UWORD hlen;
509-
BOOL abbrev = (len <= 400);
509+
/*BOOL abbrev = (len <= 400);*/
510+
BOOL abbrev = (len < 1024);
510511

511512
/* fundamental info */
512513
sprintf(connect_string, "%s=%s;DATABASE=%s;SERVER=%s;PORT=%s;UID=%s;PWD=%s",

0 commit comments

Comments
 (0)