diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2014-05-31 12:31:26 +0200 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2014-05-31 12:31:26 +0200 |
commit | 128136cbdf7745ea0d1721bb574180034065912a (patch) | |
tree | 143ca65cd1136b77bf06cd368e23f90d6c097466 /storage/connect/tabutil.h | |
parent | 9cb4b6c00985b3f70ed30dcefc8770b34f334c47 (diff) | |
parent | 7bbcc3e4ed6eef226b6978615cd64294b6bfe95c (diff) | |
download | mariadb-git-128136cbdf7745ea0d1721bb574180034065912a.tar.gz |
- Add support of partition tables
modified:
storage/connect/ha_connect.cc
storage/connect/ha_connect.h
storage/connect/reldef.cpp
- Add INSERT/UPDATE support to PROXY tables
modified:
storage/connect/tabutil.cpp
storage/connect/tabutil.h
- Take care of SPECIAL columns
modified:
storage/connect/filamdbf.cpp
storage/connect/reldef.h
storage/connect/tabfmt.cpp
-Typo and misc
modified:
storage/connect/odbconn.cpp
storage/connect/tabfix.cpp
storage/connect/xindex.cpp
Diffstat (limited to 'storage/connect/tabutil.h')
-rw-r--r-- | storage/connect/tabutil.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/storage/connect/tabutil.h b/storage/connect/tabutil.h index c87065befba..5344372a30b 100644 --- a/storage/connect/tabutil.h +++ b/storage/connect/tabutil.h @@ -57,13 +57,17 @@ class DllExport TDBPRX : public TDBASE { friend class PRXDEF; friend class PRXCOL; public: - // Constructor + // Constructors TDBPRX(PPRXDEF tdp); + TDBPRX(PGLOBAL g, PTDBPRX tdbp); // Implementation virtual AMT GetAmType(void) {return TYPE_AM_PRX;} + virtual PTDB Duplicate(PGLOBAL g) + {return (PTDB)new(g) TDBPRX(g, this);} // Methods + virtual PTDB CopyOne(PTABS t); virtual int GetRecpos(void) {return Tdbp->GetRecpos();} virtual void ResetDB(void) {Tdbp->ResetDB();} virtual int RowNumber(PGLOBAL g, bool b = FALSE); @@ -97,15 +101,19 @@ class DllExport PRXCOL : public COLBLK { public: // Constructors PRXCOL(PCOLDEF cdp, PTDB tdbp, PCOL cprec, int i, PSZ am = "PRX"); + PRXCOL(PRXCOL *colp, PTDB tdbp); // Constructor used in copy process // Implementation - virtual int GetAmType(void) {return TYPE_AM_PRX;} + virtual int GetAmType(void) {return TYPE_AM_PRX;} // Methods - virtual void Reset(void); - virtual bool IsSpecial(void) {return Pseudo;} - virtual void ReadColumn(PGLOBAL g); - bool Init(PGLOBAL g); + virtual void Reset(void); + virtual bool IsSpecial(void) {return Pseudo;} + virtual bool SetBuffer(PGLOBAL g, PVAL value, bool ok, bool check) + {return false;} + virtual void ReadColumn(PGLOBAL g); + virtual void WriteColumn(PGLOBAL g); + bool Init(PGLOBAL g, PTDBASE tp = NULL); protected: // Default constructor not to be used |