mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
in this version. Sure enough, it never caused any improvement in the execution speed and rather caused a small increase of execution time. This is probably because values are sorted by rowid in each range of CONNECT indexes. This could be reconsidered if a customer have a need for processing very big files. - Fix a bug in ha_connect::CheckCond. The negated form of BETWEEN and IS NULL operators was not recognized. modified: storage/connect/ha_connect.cc - Add long jump initialization in CntReadNext. This was causing a server crash when an error occured in a ReadColumn. modified: storage/connect/connect.cc - General cleanup of CONNECT source code eliminating all code not used by CONNECT, including the MRR test code (saved separately). modified: storage/connect/catalog.h storage/connect/colblk.cpp storage/connect/colblk.h storage/connect/connect.cc storage/connect/connect.h storage/connect/domdoc.h storage/connect/filamap.cpp storage/connect/filamap.h storage/connect/filamdbf.h storage/connect/filamfix.cpp storage/connect/filamfix.h storage/connect/filamtxt.cpp storage/connect/filamtxt.h storage/connect/filamvct.cpp storage/connect/filamvct.h storage/connect/filamzip.cpp storage/connect/filamzip.h storage/connect/global.h storage/connect/ha_connect.cc storage/connect/ha_connect.h storage/connect/myconn.h storage/connect/plgcnx.h storage/connect/plgdbsem.h storage/connect/plugutil.c storage/connect/preparse.h storage/connect/reldef.cpp storage/connect/reldef.h storage/connect/tabcol.h storage/connect/tabdos.cpp storage/connect/tabdos.h storage/connect/tabfix.cpp storage/connect/tabfmt.cpp storage/connect/tabfmt.h storage/connect/table.cpp storage/connect/tabmac.h storage/connect/tabmul.h storage/connect/tabmysql.cpp storage/connect/tabmysql.h storage/connect/taboccur.h storage/connect/tabodbc.cpp storage/connect/tabodbc.h storage/connect/tabsys.cpp storage/connect/tabsys.h storage/connect/tabtbl.cpp storage/connect/tabtbl.h storage/connect/tabutil.h storage/connect/tabvct.cpp storage/connect/tabvct.h storage/connect/tabwmi.cpp storage/connect/tabwmi.h storage/connect/tabxml.cpp storage/connect/tabxml.h storage/connect/user_connect.cc storage/connect/user_connect.h storage/connect/valblk.cpp storage/connect/valblk.h storage/connect/value.cpp storage/connect/value.h storage/connect/xindex.cpp storage/connect/xindex.h storage/connect/xobject.cpp storage/connect/xobject.h storage/connect/xtable.h
110 lines
4.7 KiB
C++
110 lines
4.7 KiB
C++
/*************** TabCol H Declares Source Code File (.H) ***************/
|
|
/* Name: TABCOL.H Version 2.8 */
|
|
/* */
|
|
/* (C) Copyright to the author Olivier BERTRAND 1998-2013 */
|
|
/* */
|
|
/* This file contains the XTAB, COLUMN and XORDER class definitions. */
|
|
/***********************************************************************/
|
|
|
|
/***********************************************************************/
|
|
/* Include required application header files */
|
|
/* block.h is header containing Block global declarations. */
|
|
/***********************************************************************/
|
|
#include "xobject.h"
|
|
|
|
/***********************************************************************/
|
|
/* Definition of class XTAB with all its method functions. */
|
|
/***********************************************************************/
|
|
class DllExport XTAB: public BLOCK { // Table Name-Schema-Srcdef block.
|
|
friend class TDBPRX;
|
|
friend class TDBTBM;
|
|
public:
|
|
// Constructors
|
|
XTAB(LPCSTR name, LPCSTR srcdef = NULL);
|
|
XTAB(PTABLE tp);
|
|
|
|
// Implementation
|
|
PTABLE GetNext(void) {return Next;}
|
|
PTDB GetTo_Tdb(void) {return To_Tdb;}
|
|
LPCSTR GetName(void) {return Name;}
|
|
LPCSTR GetSrc(void) {return Srcdef;}
|
|
LPCSTR GetSchema(void) {return Schema;}
|
|
LPCSTR GetQualifier(void) {return Qualifier;}
|
|
void SetTo_Tdb(PTDB tdbp) {To_Tdb = tdbp;}
|
|
void SetName(LPCSTR name) {Name = name;}
|
|
void SetSrc(LPCSTR srcdef) {Srcdef = srcdef;}
|
|
void SetSchema(LPCSTR schname) {Schema = schname;}
|
|
void SetQualifier(LPCSTR qname) {Qualifier = qname;}
|
|
|
|
// Methods
|
|
PTABLE Link(PTABLE);
|
|
void Print(PGLOBAL g, FILE *f, uint n);
|
|
void Print(PGLOBAL g, char *ps, uint z);
|
|
|
|
protected:
|
|
// Members
|
|
PTABLE Next; // Points to next table in chain
|
|
PTDB To_Tdb; // Points to Table description Block
|
|
LPCSTR Name; // Table name
|
|
LPCSTR Srcdef; // Table Source definition
|
|
LPCSTR Schema; // Schema name
|
|
LPCSTR Qualifier; // Qualifier name
|
|
}; // end of class XTAB
|
|
|
|
|
|
/***********************************************************************/
|
|
/* Definition of class COLUMN with all its method functions. */
|
|
/* Note: because of LNA routines, the constantness of Name was */
|
|
/* removed and constructing a COLUMN with null name was allowed. */
|
|
/* Perhaps this should be replaced by the use of a specific class. */
|
|
/***********************************************************************/
|
|
class DllExport COLUMN: public XOBJECT { // Column Name/Qualifier block.
|
|
public:
|
|
// Constructor
|
|
COLUMN(LPCSTR name);
|
|
|
|
// Implementation
|
|
virtual int GetType(void) {return TYPE_COLUMN;}
|
|
virtual int GetResultType(void) {assert(false); return TYPE_VOID;}
|
|
virtual int GetLength(void) {assert(false); return 0;}
|
|
virtual int GetLengthEx(void) {assert(false); return 0;}
|
|
virtual int GetScale() {assert(false); return 0;};
|
|
LPCSTR GetName(void) {return Name;}
|
|
LPCSTR GetQualifier(void) {return Qualifier;}
|
|
PTABLE GetTo_Table(void) {return To_Table;}
|
|
PCOL GetTo_Col(void) {return To_Col;}
|
|
void SetQualifier(LPCSTR qualif) {Qualifier = qualif;}
|
|
void SetTo_Table(PTABLE tablep) {To_Table = tablep;}
|
|
void SetTo_Col(PCOL colp) {To_Col = colp;}
|
|
|
|
// Methods
|
|
virtual void Print(PGLOBAL g, FILE *f, uint n);
|
|
virtual void Print(PGLOBAL g, char *ps, uint z);
|
|
// All methods below should never be used for COLUMN's
|
|
virtual void Reset(void) {assert(false);}
|
|
virtual bool Compare(PXOB) {assert(false); return false;}
|
|
virtual bool SetFormat(PGLOBAL, FORMAT&);
|
|
virtual bool Eval(PGLOBAL) {assert(false); return true;}
|
|
|
|
private:
|
|
// Members
|
|
PTABLE To_Table; // Point to Table Name Block
|
|
PCOL To_Col; // Points to Column Description Block
|
|
LPCSTR const Name; // Column name
|
|
LPCSTR Qualifier; // Qualifier name
|
|
}; // end of class COLUMN
|
|
|
|
/***********************************************************************/
|
|
/* Definition of class SPCCOL with all its method functions. */
|
|
/* Note: Currently the special columns are ROWID, ROWNUM, FILEID, */
|
|
/* SERVID, TABID, and CONID. */
|
|
/***********************************************************************/
|
|
class SPCCOL: public COLUMN { // Special Column Name/Qualifier block.
|
|
public:
|
|
// Constructor
|
|
SPCCOL(LPCSTR name) : COLUMN(name) {}
|
|
|
|
private:
|
|
// Members
|
|
}; // end of class SPCCOL
|