mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix MDEV-9239. Meanwhile, make all references to the database in XTAB Schema
(was sometimes in XTAB Catalog) modified: storage/connect/mycat.cc modified: storage/connect/mycat.h modified: storage/connect/reldef.cpp modified: storage/connect/reldef.h modified: storage/connect/tabmysql.cpp modified: storage/connect/tabpivot.cpp modified: storage/connect/tabtbl.cpp modified: storage/connect/tabutil.cpp
This commit is contained in:
@@ -348,7 +348,7 @@ bool PIVOTDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
|
||||
return TRUE;
|
||||
|
||||
Tabname = (char*)Tablep->GetName();
|
||||
DB = (char*)Tablep->GetQualifier();
|
||||
DB = (char*)Tablep->GetSchema();
|
||||
Tabsrc = (char*)Tablep->GetSrc();
|
||||
|
||||
Host = GetStringCatInfo(g, "Host", "localhost");
|
||||
@@ -529,7 +529,7 @@ bool TDBPIVOT::GetSourceTable(PGLOBAL g)
|
||||
// Get the new table description block of this source table
|
||||
PTABLE tablep = new(g) XTAB("whatever", Tabsrc);
|
||||
|
||||
tablep->SetQualifier(Database);
|
||||
tablep->SetSchema(Database);
|
||||
|
||||
if (!(Tdbp = GetSubTable(g, tablep, true)))
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user