mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@@ -1023,13 +1023,13 @@ bool JDOC::SerializeValue(PJVAL jvp)
|
||||
case TYPE_DTM:
|
||||
return js->Escape(jvp->Strp);
|
||||
case TYPE_INTG:
|
||||
sprintf(buf, "%d", jvp->N);
|
||||
snprintf(buf, sizeof(buf), "%d", jvp->N);
|
||||
return js->WriteStr(buf);
|
||||
case TYPE_BINT:
|
||||
sprintf(buf, "%lld", jvp->LLn);
|
||||
snprintf(buf, sizeof(buf), "%lld", jvp->LLn);
|
||||
return js->WriteStr(buf);
|
||||
case TYPE_DBL: // dfp to limit to the default number of decimals
|
||||
sprintf(buf, "%.*f", MY_MIN(jvp->Nd, dfp), jvp->F);
|
||||
snprintf(buf, sizeof(buf), "%.*f", MY_MIN(jvp->Nd, dfp), jvp->F);
|
||||
return js->WriteStr(buf);
|
||||
case TYPE_NULL:
|
||||
return js->WriteStr("null");
|
||||
|
Reference in New Issue
Block a user