mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- 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
This commit is contained in:
@@ -130,7 +130,7 @@ PARRAY MakeValueArray(PGLOBAL g, PPARM pp)
|
||||
break;
|
||||
case TYPE_VOID:
|
||||
// Integer stored inside pp->Value
|
||||
par->AddValue(g, (int)(uintptr_t)parmp->Value);
|
||||
par->AddValue(g, parmp->Intval);
|
||||
break;
|
||||
} // endswitch valtyp
|
||||
|
||||
@@ -609,13 +609,13 @@ int ARRAY::Convert(PGLOBAL g, int k, PVAL vp)
|
||||
|
||||
Size = Nval;
|
||||
Nval = 0;
|
||||
Vblp = Valblk->Allocate(g, Type, Len, 0, Size);
|
||||
Vblp = Valblk->Allocate(g, Type, Len, prec, Size);
|
||||
|
||||
if (!Valblk->GetMemp())
|
||||
// The error message was built by PlgDBalloc
|
||||
return TYPE_ERROR;
|
||||
else
|
||||
Value = AllocateValue(g, Type, Len, 0, NULL);
|
||||
Value = AllocateValue(g, Type, Len, prec, NULL);
|
||||
|
||||
/*********************************************************************/
|
||||
/* Converting STRING to DATE can be done according to date format. */
|
||||
|
Reference in New Issue
Block a user