Skip to content

Commit

Permalink
CONNECT compilation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Apr 26, 2019
1 parent f22ed27 commit 5fe0087
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions storage/connect/filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class DllExport FILTER : public XOBJECT { /* Filter description block */
PVAL &Val(int i) {return Test[i].Value;}
bool &Conv(int i) {return Test[i].Conv;}
void SetNext(PFIL filp) {Next = filp;}
bool MakeSelector(PGLOBAL g, PSTRG s);

// Methods
virtual void Reset(void);
Expand Down
4 changes: 2 additions & 2 deletions storage/connect/jmgoconn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ bool JMgoConn::MakeCursor(PGLOBAL g, PTDB tdbp, PCSZ options,

if (MakeSelector(g, filp, s)) {
strcpy(g->Message, "Failed making selector");
return NULL;
return true;
} else
s->Append('}');

Expand Down Expand Up @@ -340,7 +340,7 @@ bool JMgoConn::MakeCursor(PGLOBAL g, PTDB tdbp, PCSZ options,

if (MakeSelector(g, filp, s)) {
strcpy(g->Message, "Failed making selector");
return NULL;
return true;
} // endif Selector

tdbp->SetFilter(NULL); // Not needed anymore
Expand Down
9 changes: 0 additions & 9 deletions storage/connect/mycat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -545,15 +545,6 @@ PRELDEF MYCAT::MakeTableDesc(PGLOBAL g, PTABLE tablep, LPCSTR am)
case TAB_PIVOT: tdp= new(g) PIVOTDEF; break;
case TAB_VIR: tdp= new(g) VIRDEF; break;
case TAB_JSON: tdp= new(g) JSONDEF; break;
#if defined(MONGO_SUPPORT)
case TAB_MONGO:
// if (MongoEnabled())
tdp = new(g) MGODEF;
// else
// strcpy(g->Message, "MONGO type not enabled");

break;
#endif // MONGO_SUPPORT
#if defined(ZIP_SUPPORT)
case TAB_ZIP: tdp = new(g) ZIPDEF; break;
#endif // ZIP_SUPPORT
Expand Down

0 comments on commit 5fe0087

Please sign in to comment.