1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

CONNECT: compiler warnings

This commit is contained in:
Sergei Golubchik
2021-01-31 19:42:14 +01:00
parent bbbe7e781f
commit a7b6943ee4
6 changed files with 23 additions and 13 deletions

View File

@@ -599,10 +599,12 @@ int ARRAY::Convert(PGLOBAL g, int k, PVAL vp)
/* Converting STRING to DATE can be done according to date format. */
/*********************************************************************/
if (Type == TYPE_DATE && ovblp->GetType() == TYPE_STRING && vp)
{
if (((DTVAL*)Value)->SetFormat(g, vp))
return TYPE_ERROR;
else
b = true; // Sort the new array on date internal values
}
/*********************************************************************/
/* Do the actual conversion. */