summaryrefslogtreecommitdiff
path: root/storage/connect/tabjson.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2017-05-03 10:32:01 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2017-05-03 10:32:01 +0200
commit1de6440a2e441e7aeffe85ee9c72e1e001fcf38d (patch)
tree12d3bcf508b354fd5095aa9ee36e682ac827d6aa /storage/connect/tabjson.cpp
parent63b7d9d1586336a61d6de7fbdcdfbc72e6117f93 (diff)
downloadmariadb-git-1de6440a2e441e7aeffe85ee9c72e1e001fcf38d.tar.gz
Fix MDEV-12587 MariaDB CONNECT DIR Type
- Subfolder Option: SELECT Query Never Ends modified: storage/connect/tabmul.cpp modified: storage/connect/tabmul.h Work on MDEV-12667 Crash when using JSON tables modified: storage/connect/connect.cc modified: storage/connect/ha_connect.cc modified: storage/connect/ha_connect.h modified: storage/connect/plgdbutl.cpp Change Base offset for DIR tables on Linux modified: storage/connect/reldef.cpp
Diffstat (limited to 'storage/connect/tabjson.cpp')
-rw-r--r--storage/connect/tabjson.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/connect/tabjson.cpp b/storage/connect/tabjson.cpp
index f451c73b665..e074232600b 100644
--- a/storage/connect/tabjson.cpp
+++ b/storage/connect/tabjson.cpp
@@ -117,8 +117,10 @@ PQRYRES JSONColumns(PGLOBAL g, char *db, PTOS topt, bool info)
return NULL;
} // endif Fn
- tdp->Database = SetPath(g, db);
- tdp->Objname = GetStringTableOption(g, topt, "Object", NULL);
+ if (!(tdp->Database = SetPath(g, db)))
+ return NULL;
+
+ tdp->Objname = GetStringTableOption(g, topt, "Object", NULL);
tdp->Base = GetIntegerTableOption(g, topt, "Base", 0) ? 1 : 0;
tdp->Pretty = GetIntegerTableOption(g, topt, "Pretty", 2);