[freetds] setting the default database ("asa database")

Frediano Ziglio freddy77 at gmail.com
Wed Jun 4 00:46:40 EDT 2014


2014-05-30 16:27 GMT+01:00 <samuel.ferencik at barclays.com>:

> Hi,
>
> In FreeTDS 0.91, the asa database<
> http://freetds.schemamania.org/userguide/freetdsconf.htm#ASA.DATABASE>
> feature seems broken. See below for the patch.
>
> Thanks,
> Sam
>
> Left file: src\tds\config#2.c
> Right file: src\tds\config#3.c
> 227c227
> <                             tdsdump_log(TDS_DBG_INFO1, "Final connection
> parameters:\n");
> ---
> >                             tdsdump_log(TDS_DBG_INFO1, "Final connection
> parameters from DSN [freetds.conf]:\n");
> 252c252
> <                             tdsdump_log(TDS_DBG_INFO1, "\t%20s = %s\n",
> "database", tds_dstr_cstr(&connection->database));
> ---
> >                             tdsdump_log(TDS_DBG_INFO1, "\t%20s = %s\n",
> "asa database", tds_dstr_cstr(&connection->database));
> 626c626
> <                             tds_dstr_copy(&connection->server_name,
> value);
> ---
> >                             tds_dstr_copy(&connection->database, value);
>
>
Hi,
 try to understand what your patch is trying to to without any context is
really hard. What's your problem and why you had to change it? "database"
and "asa database" are two completely different things

Frediano


More information about the FreeTDS mailing list