mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
All changes made on 10.1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/************* Tabutil cpp Declares Source Code File (.CPP) ************/
|
||||
/* Name: TABUTIL.CPP Version 1.1 */
|
||||
/* Name: TABUTIL.CPP Version 1.2 */
|
||||
/* */
|
||||
/* (C) Copyright to the author Olivier BERTRAND 2013 - 2016 */
|
||||
/* (C) Copyright to the author Olivier BERTRAND 2013 - 2017 */
|
||||
/* */
|
||||
/* Utility function used by the PROXY, XCOL, OCCUR, and TBL tables. */
|
||||
/***********************************************************************/
|
||||
@@ -45,8 +45,9 @@
|
||||
#include "myutil.h"
|
||||
#include "valblk.h"
|
||||
#include "resource.h"
|
||||
#include "reldef.h"
|
||||
//#include "reldef.h"
|
||||
#include "xtable.h"
|
||||
#include "tabext.h"
|
||||
#include "tabmysql.h"
|
||||
#include "tabcol.h"
|
||||
#include "tabutil.h"
|
||||
@@ -356,7 +357,7 @@ TDBPRX::TDBPRX(PTDBPRX tdbp) : TDBASE(tdbp)
|
||||
} // end of TDBPRX copy constructor
|
||||
|
||||
// Method
|
||||
PTDB TDBPRX::CopyOne(PTABS t)
|
||||
PTDB TDBPRX::Clone(PTABS t)
|
||||
{
|
||||
PTDB tp;
|
||||
PPRXCOL cp1, cp2;
|
||||
@@ -370,12 +371,12 @@ PTDB TDBPRX::CopyOne(PTABS t)
|
||||
} // endfor cp1
|
||||
|
||||
return tp;
|
||||
} // end of CopyOne
|
||||
} // end of Clone
|
||||
|
||||
/***********************************************************************/
|
||||
/* Get the PTDB of the sub-table. */
|
||||
/***********************************************************************/
|
||||
PTDBASE TDBPRX::GetSubTable(PGLOBAL g, PTABLE tabp, bool b)
|
||||
PTDB TDBPRX::GetSubTable(PGLOBAL g, PTABLE tabp, bool b)
|
||||
{
|
||||
const char *sp = NULL;
|
||||
char *db, *name;
|
||||
@@ -456,13 +457,13 @@ PTDBASE TDBPRX::GetSubTable(PGLOBAL g, PTABLE tabp, bool b)
|
||||
|
||||
if (trace && tdbp)
|
||||
htrc("Subtable %s in %s\n",
|
||||
name, SVP(((PTDBASE)tdbp)->GetDef()->GetDB()));
|
||||
name, SVP(tdbp->GetDef()->GetDB()));
|
||||
|
||||
err:
|
||||
if (s)
|
||||
free_table_share(s);
|
||||
|
||||
return (PTDBASE)tdbp;
|
||||
return tdbp;
|
||||
} // end of GetSubTable
|
||||
|
||||
/***********************************************************************/
|
||||
@@ -560,9 +561,9 @@ bool TDBPRX::OpenDB(PGLOBAL g)
|
||||
/* its column blocks in mode write (required by XML tables). */
|
||||
/*********************************************************************/
|
||||
if (Mode == MODE_UPDATE) {
|
||||
PTDBASE utp;
|
||||
PTDB utp;
|
||||
|
||||
if (!(utp= (PTDBASE)Tdbp->Duplicate(g))) {
|
||||
if (!(utp= Tdbp->Duplicate(g))) {
|
||||
sprintf(g->Message, MSG(INV_UPDT_TABLE), Tdbp->GetName());
|
||||
return true;
|
||||
} // endif tp
|
||||
@@ -681,7 +682,7 @@ char *PRXCOL::Decode(PGLOBAL g, const char *cnm)
|
||||
/* PRXCOL initialization routine. */
|
||||
/* Look for the matching column in the object table. */
|
||||
/***********************************************************************/
|
||||
bool PRXCOL::Init(PGLOBAL g, PTDBASE tp)
|
||||
bool PRXCOL::Init(PGLOBAL g, PTDB tp)
|
||||
{
|
||||
if (!tp)
|
||||
tp = ((PTDBPRX)To_Tdb)->Tdbp;
|
||||
|
Reference in New Issue
Block a user