Skip to Content.
Sympa Menu

freetds - t0003 fail bad code

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Joe" <harfranks AT yahoo.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: t0003 fail bad code
  • Date: Fri, 6 Jul 2001 18:58:31 -0400


hey I stubled across this as I started deconstructing the code..


verbose does not work for me and I havent been able to make it really
change databases.

here is a snippit from t0003 that says it pass's but does nothing the top
line does not pass the if statement

/* Test currently disabled during TDSENVINFO changes */
if (tds && tds->env && tds->env->database) {
fprintf(stdout, "Muck\n", new);

if (verbose) {
fprintf(stdout, "database changed to %s\n", tds->env->database);
}

if (strcmp(tds->env->database, "tempdb")) {
fprintf(stdout, "Wrong database, %s != tempdb\n", new);
fprintf(stderr, "Wrong database, %s != tempdb\n", new);
return 1;
}
}



  • t0003 fail bad code, Joe, 07/06/2001

Archive powered by MHonArc 2.6.24.

Top of Page