mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Add table option FILTER used by Mongo and Json tables.
modified: storage/connect/ha_connect.cc modified: storage/connect/mongofam.cpp modified: storage/connect/mycat.h modified: storage/connect/tabjson.cpp modified: storage/connect/tabjson.h modified: storage/connect/tabmgo.cpp modified: storage/connect/tabmgo.h Fix a regression bug in MongoFam (all = true only when no Options) modified: storage/connect/mongofam.cpp Fix a regression bug in JsonCol (in JSONCOL::GetJpath) modified: storage/connect/tabjson.cpp
This commit is contained in:
@@ -463,7 +463,7 @@ JSONDEF::JSONDEF(void)
|
||||
Sep = '.';
|
||||
#if defined(MONGO_SUPPORT)
|
||||
Uri = NULL;
|
||||
Collname = Schema = Options = NULL;
|
||||
Collname = Schema = Options = Filter = NULL;
|
||||
Pipe = false;
|
||||
#endif // MONGO_SUPPORT
|
||||
} // end of JSONDEF constructor
|
||||
@@ -488,6 +488,7 @@ bool JSONDEF::DefineAM(PGLOBAL g, LPCSTR, int poff)
|
||||
Collname = GetStringCatInfo(g, "Tabname", Collname);
|
||||
Schema = GetStringCatInfo(g, "Dbname", "test");
|
||||
Options = GetStringCatInfo(g, "Colist", NULL);
|
||||
Filter = GetStringCatInfo(g, "Filter", NULL);
|
||||
Pipe = GetBoolCatInfo("Pipeline", false);
|
||||
Pretty = 0;
|
||||
#else // !MONGO_SUPPORT
|
||||
@@ -1323,7 +1324,7 @@ char *JSONCOL::GetJpath(PGLOBAL g, bool proj)
|
||||
*p2++ = '.';
|
||||
break;
|
||||
case '[':
|
||||
if (*p2 != '.')
|
||||
if (*(p2 - 1) != '.')
|
||||
*p2++ = '.';
|
||||
|
||||
i = 1;
|
||||
|
Reference in New Issue
Block a user