summaryrefslogtreecommitdiff
path: root/storage/connect/tabjdbc.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2018-03-27 17:08:39 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2018-03-27 17:08:39 +0200
commit213b1da256b362790d73b805f39bc9407f2b2a18 (patch)
tree83516efa8b899dda6efa7feeb4af71c6cfa43294 /storage/connect/tabjdbc.cpp
parentf9cf2df077f0f680f807c00b142971601ca4bb6f (diff)
downloadmariadb-git-213b1da256b362790d73b805f39bc9407f2b2a18.tar.gz
- Fix MDEV-15577 CONNECT engine JDBC remote index prevents UPDATE
Fixed in TDBJDBC::OpenDB because query can be null for updates modified: storage/connect/tabjdbc.cpp
Diffstat (limited to 'storage/connect/tabjdbc.cpp')
-rw-r--r--storage/connect/tabjdbc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/connect/tabjdbc.cpp b/storage/connect/tabjdbc.cpp
index adbfb2168ae..275b5edaeae 100644
--- a/storage/connect/tabjdbc.cpp
+++ b/storage/connect/tabjdbc.cpp
@@ -572,7 +572,7 @@ bool TDBJDBC::OpenDB(PGLOBAL g)
if (Memory < 3) {
// Method will depend on cursor type
- if ((Rbuf = Jcp->Rewind(Query->GetStr())) < 0)
+ if ((Rbuf = Query ? Jcp->Rewind(Query->GetStr()) : 0) < 0)
if (Mode != MODE_READX) {
Jcp->Close();
return true;