mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- NOTE: an experimental implementation of MRR was done but not kept
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
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/************* TabTbl C++ Program Source Code File (.CPP) **************/
|
||||
/* PROGRAM NAME: TABTBL */
|
||||
/* ------------- */
|
||||
/* Version 1.6 */
|
||||
/* Version 1.7 */
|
||||
/* */
|
||||
/* COPYRIGHT: */
|
||||
/* ---------- */
|
||||
/* (C) Copyright to PlugDB Software Development 2008-2013 */
|
||||
/* (C) Copyright to PlugDB Software Development 2008-2014 */
|
||||
/* Author: Olivier BERTRAND */
|
||||
/* */
|
||||
/* WHAT THIS PROGRAM DOES: */
|
||||
@@ -66,7 +66,6 @@
|
||||
#include "global.h" // global declarations
|
||||
#include "plgdbsem.h" // DB application declarations
|
||||
#include "reldef.h" // DB definition declares
|
||||
//#include "filter.h" // FILTER classes dcls
|
||||
#include "filamtxt.h"
|
||||
#include "tabcol.h"
|
||||
#include "tabdos.h" // TDBDOS and DOSCOL class dcls
|
||||
@@ -245,7 +244,7 @@ bool TDBTBL::InitTableList(PGLOBAL g)
|
||||
// PlugSetPath(filename, Tdbp->GetFile(g), Tdbp->GetPath());
|
||||
|
||||
for (n = 0, tp = tdp->Tablep; tp; tp = tp->GetNext()) {
|
||||
if (TestFil(g, To_Filter, tp)) {
|
||||
if (TestFil(g, To_CondFil, tp)) {
|
||||
tabp = new(g) XTAB(tp);
|
||||
|
||||
if (tabp->GetSrc()) {
|
||||
@@ -286,14 +285,14 @@ bool TDBTBL::InitTableList(PGLOBAL g)
|
||||
hc->get_table()->s->connect_string.length = sln;
|
||||
|
||||
//NumTables = n;
|
||||
To_Filter = NULL; // To avoid doing it several times
|
||||
To_CondFil = NULL; // To avoid doing it several times
|
||||
return FALSE;
|
||||
} // end of InitTableList
|
||||
|
||||
/***********************************************************************/
|
||||
/* Test the tablename against the pseudo "local" filter. */
|
||||
/***********************************************************************/
|
||||
bool TDBTBL::TestFil(PGLOBAL g, PFIL filp, PTABLE tabp)
|
||||
bool TDBTBL::TestFil(PGLOBAL g, PCFIL filp, PTABLE tabp)
|
||||
{
|
||||
char *body, *fil, op[8], tn[NAME_LEN];
|
||||
bool neg;
|
||||
@@ -421,12 +420,12 @@ bool TDBTBL::OpenDB(PGLOBAL g)
|
||||
} // endif use
|
||||
|
||||
/*********************************************************************/
|
||||
/* When GetMaxsize was called, To_Filter was not set yet. */
|
||||
/* When GetMaxsize was called, To_CondFil was not set yet. */
|
||||
/*********************************************************************/
|
||||
if (To_Filter && Tablist) {
|
||||
if (To_CondFil && Tablist) {
|
||||
Tablist = NULL;
|
||||
Nbc = 0;
|
||||
} // endif To_Filter
|
||||
} // endif To_CondFil
|
||||
|
||||
/*********************************************************************/
|
||||
/* Open the first table of the list. */
|
||||
@@ -661,12 +660,12 @@ bool TDBTBM::OpenDB(PGLOBAL g)
|
||||
|
||||
#if 0
|
||||
/*********************************************************************/
|
||||
/* When GetMaxsize was called, To_Filter was not set yet. */
|
||||
/* When GetMaxsize was called, To_CondFil was not set yet. */
|
||||
/*********************************************************************/
|
||||
if (To_Filter && Tablist) {
|
||||
if (To_CondFil && Tablist) {
|
||||
Tablist = NULL;
|
||||
Nbc = 0;
|
||||
} // endif To_Filter
|
||||
} // endif To_CondFil
|
||||
#endif // 0
|
||||
|
||||
/*********************************************************************/
|
||||
|
Reference in New Issue
Block a user