diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2014-09-30 12:59:24 +0200 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2014-09-30 12:59:24 +0200 |
commit | 38c3fd2099577b932999766df41c77a81429fdc4 (patch) | |
tree | ac35245a4aeaa8fb75434d3e16f2f513ef9ba3af /storage/connect/tabdos.cpp | |
parent | dd5eb7ae6781e963c6eb20049087c3f3c7e7b510 (diff) | |
download | mariadb-git-38c3fd2099577b932999766df41c77a81429fdc4.tar.gz |
- Fix MDEV-6802 in a clean way.
Add an union in the PARM structure to contain int values
Use a cast to ptrdiff_t in MAPFAM/MXPFAM::InitDelete required by some compilers
modified:
storage/connect/array.cpp
storage/connect/filamap.cpp
storage/connect/filamtxt.cpp
storage/connect/global.h
- Suppress some GCC warnings
modified:
storage/connect/array.cpp
storage/connect/filter.cpp
storage/connect/tabdos.cpp
storage/connect/tabmysql.cpp
storage/connect/value.cpp
Diffstat (limited to 'storage/connect/tabdos.cpp')
-rw-r--r-- | storage/connect/tabdos.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/storage/connect/tabdos.cpp b/storage/connect/tabdos.cpp index 054e46f7f10..1af10183687 100644 --- a/storage/connect/tabdos.cpp +++ b/storage/connect/tabdos.cpp @@ -322,7 +322,7 @@ PTDB DOSDEF::GetTable(PGLOBAL g, MODE mode) && mode == MODE_UPDATE) && !(tmp == TMP_FORCE && (mode == MODE_UPDATE || mode == MODE_DELETE)); - PTXF txfp; + PTXF txfp = NULL; PTDBASE tdbp; /*********************************************************************/ @@ -574,7 +574,7 @@ int TDBDOS::ResetTableOpt(PGLOBAL g, bool dop, bool dox) int TDBDOS::MakeBlockValues(PGLOBAL g) { int i, lg, nrec, rc, n = 0; - int curnum, curblk, block, last, savndv, savnbm; + int curnum, curblk, block, savndv, savnbm; void *savmin, *savmax; bool blocked, xdb2 = false; //POOLHEADER save; @@ -611,7 +611,7 @@ int TDBDOS::MakeBlockValues(PGLOBAL g) // to Rows+1 by unblocked variable length table access methods. curblk = -1; curnum = nrec - 1; - last = 0; +//last = 0; Txfp->Block = block; // This is useful mainly for Txfp->CurBlk = curblk; // blocked tables (ZLBFAM), for Txfp->CurNum = curnum; // others it is just to be clean. @@ -742,7 +742,7 @@ int TDBDOS::MakeBlockValues(PGLOBAL g) Txfp->BlkPos[curblk] = Txfp->GetPos(); } // endif CurNum - last = curnum + 1; // curnum is zero based +// last = curnum + 1; // curnum is zero based Txfp->CurBlk = curblk; // Used in COLDOS::SetMinMax Txfp->CurNum = curnum; // Used in COLDOS::SetMinMax } // endif blocked @@ -1351,7 +1351,7 @@ PBF TDBDOS::CheckBlockFilari(PGLOBAL g, PXOB *arg, int op, bool *cnv) //int i, n1, n2, ctype = TYPE_ERROR, n = 0, type[2] = {0,0}; //bool conv = false, xdb2 = false, ok = false, b[2]; //PXOB *xarg1, *xarg2 = NULL, xp[2]; - int i, ctype = TYPE_ERROR, n = 0, type[2] = {0,0}; + int i, n = 0, type[2] = {0,0}; bool conv = false, xdb2 = false, ok = false; PXOB *xarg2 = NULL, xp[2]; PCOL colp; @@ -1363,7 +1363,7 @@ PBF TDBDOS::CheckBlockFilari(PGLOBAL g, PXOB *arg, int op, bool *cnv) switch (arg[i]->GetType()) { case TYPE_CONST: type[i] = 1; - ctype = arg[i]->GetResultType(); + // ctype = arg[i]->GetResultType(); break; case TYPE_COLBLK: conv = cnv[i]; @@ -1388,7 +1388,7 @@ PBF TDBDOS::CheckBlockFilari(PGLOBAL g, PXOB *arg, int op, bool *cnv) // correlated subquery, it has a constant value during // each execution of the subquery. type[i] = 1; - ctype = arg[i]->GetResultType(); +// ctype = arg[i]->GetResultType(); } // endif this break; |