Skip to content

Commit

Permalink
Fix bug: Discovery of JSON table fails in DEBUG mode
Browse files Browse the repository at this point in the history
when NO MONGO support. (tdb->Uri is uninitialized)
  modified:   storage/connect/tabjson.cpp
  • Loading branch information
Buggynours committed May 23, 2017
1 parent 3723529 commit e720e50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions storage/connect/tabjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,12 @@ PQRYRES JSONColumns(PGLOBAL g, char *db, char *dsn, PTOS topt, bool info)
tdp->Base = GetIntegerTableOption(g, topt, "Base", 0) ? 1 : 0;
tdp->Pretty = GetIntegerTableOption(g, topt, "Pretty", 2);
tdp->Xcol = GetStringTableOption(g, topt, "Expand", NULL);
tdp->Uri = (dsn && *dsn ? dsn : NULL);

if (trace)
htrc("File %s objname=%s pretty=%d lvl=%d\n",
tdp->Fn, tdp->Objname, tdp->Pretty, lvl);

if (dsn && *dsn)
tdp->Uri = dsn;

if (tdp->Uri) {
#if defined(MONGO_SUPPORT)
tdp->Collname = GetStringTableOption(g, topt, "Name", NULL);
Expand Down

0 comments on commit e720e50

Please sign in to comment.