diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2019-06-14 22:10:50 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2019-06-14 22:10:50 +0200 |
commit | f66d1850ac30922eaa49c0131d89efc8357155ff (patch) | |
tree | cb69c43694146bb7993078e76e203ded4ca48a5e /sql/my_json_writer.cc | |
parent | 772c5f3c78fcdaea2169ba435bac8d851c7945c7 (diff) | |
parent | 1135244a647e423f6a7b2122ad9c305253039399 (diff) | |
download | mariadb-git-f66d1850ac30922eaa49c0131d89efc8357155ff.tar.gz |
Merge branch '10.3' into 10.4
Diffstat (limited to 'sql/my_json_writer.cc')
-rw-r--r-- | sql/my_json_writer.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/my_json_writer.cc b/sql/my_json_writer.cc index 4bd80f106ba..4200769b1dc 100644 --- a/sql/my_json_writer.cc +++ b/sql/my_json_writer.cc @@ -129,6 +129,14 @@ void Json_writer::add_ll(longlong val) add_unquoted_str(buf); } +void Json_writer::add_ull(ulonglong val) +{ + char buf[64]; + my_snprintf(buf, sizeof(buf), "%llu", val); + add_unquoted_str(buf); +} + + /* Add a memory size, printing in Kb, Kb, Gb if necessary */ void Json_writer::add_size(longlong val) { |