summaryrefslogtreecommitdiff
path: root/storage/connect/tabodbc.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2016-08-10 18:27:31 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2016-08-10 18:27:31 +0200
commita2934d2710d24c20ec205007bdad2495a492ad83 (patch)
tree4b9a211f0bdfb8a79b747f760d5d34e9e2c765a0 /storage/connect/tabodbc.cpp
parentec725089cfde2886d74c7939c64ad6e2266dc853 (diff)
downloadmariadb-git-a2934d2710d24c20ec205007bdad2495a492ad83.tar.gz
- JdbcInterface: change return type of ...Field function
modified: storage/connect/JdbcInterface.java - Change Version number and date modified: storage/connect/ha_connect.cc - Implement the test on connect_type_conv YES/NO modified: storage/connect/jdbconn.cpp modified: storage/connect/odbconn.cpp - Fix MDEV-10520. Local schema was confused with remote schema modified: storage/connect/tabjdbc.cpp modified: storage/connect/tabodbc.cpp - Fix crash when using mapped indices. Was trying to write in a mapped file declared as read only. modified: storage/connect/xindex.cpp
Diffstat (limited to 'storage/connect/tabodbc.cpp')
-rw-r--r--storage/connect/tabodbc.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/storage/connect/tabodbc.cpp b/storage/connect/tabodbc.cpp
index e76d9c46bd3..f3ffc99ac15 100644
--- a/storage/connect/tabodbc.cpp
+++ b/storage/connect/tabodbc.cpp
@@ -458,9 +458,14 @@ bool TDBODBC::MakeSQL(PGLOBAL g, bool cnt)
if (Catalog && *Catalog)
catp = Catalog;
- if (tablep->GetSchema())
- schmp = (char*)tablep->GetSchema();
- else if (Schema && *Schema)
+ // Following lines are commented because of MSDEV-10520
+ // Indeed the schema in the tablep is the local table database and
+ // is normally not related to the remote table database.
+ // TODO: Try to remember why this was done and if it was useful in some case.
+ //if (tablep->GetSchema())
+ // schmp = (char*)tablep->GetSchema();
+ //else
+ if (Schema && *Schema)
schmp = Schema;
if (catp) {
@@ -541,9 +546,10 @@ bool TDBODBC::MakeInsert(PGLOBAL g)
if (catp)
len += strlen(catp) + 1;
- if (tablep->GetSchema())
- schmp = (char*)tablep->GetSchema();
- else if (Schema && *Schema)
+ //if (tablep->GetSchema())
+ // schmp = (char*)tablep->GetSchema();
+ //else
+ if (Schema && *Schema)
schmp = Schema;
if (schmp)