Use abbreviated connection string more widely.
authorHiroshi Inoue
Sun, 11 Nov 2001 07:24:36 +0000 (07:24 +0000)
committerHiroshi Inoue
Sun, 11 Nov 2001 07:24:36 +0000 (07:24 +0000)
This seems to fix the trouble with PowerBuilder
reported by Magbus Weber.

src/interfaces/odbc/dlg_specific.c

index b757a9331645ac4b2cbbee6ae48495ad7769c25c..f23fb9c527f315c7f20f72def0bb641c5f92d6d9 100644 (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",