summaryrefslogtreecommitdiff
path: root/storage/connect/tabodbc.cpp
diff options
context:
space:
mode:
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)