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

Try to fix failing tests

This commit is contained in:
Olivier Bertrand
2020-11-05 19:13:26 +01:00
parent a13642a82f
commit ecb00f3cd8
3 changed files with 21 additions and 23 deletions

View File

@@ -1533,10 +1533,11 @@ PSZ JVALUE::GetString(PGLOBAL g)
sprintf(buf, "%.*lf", Val->Nd, Val->F);
break;
case TYPE_BOOL:
p = (Val->B) ? "true" : "false";
p = (char*)PlugDup(g, (Val->B) ? "true" : "false");
break;
case TYPE_NULL:
p = "null";
p = (char*)PlugDup(g, "null")
;
break;
default:
p = NULL;
@@ -1545,7 +1546,7 @@ PSZ JVALUE::GetString(PGLOBAL g)
} else
p = NULL;
return p;
return (p == buf)? (char*)PlugDup(g, buf) : p;
} // end of GetString
/***********************************************************************/