summaryrefslogtreecommitdiff
path: root/sql/my_json_writer.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2019-06-12 22:54:46 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2019-06-12 22:54:46 +0200
commit5b65d61d9384a45ea1b8df79694493fbb1a14e4a (patch)
tree451255aa141e115baf97b867fb0752b8ce4dd9a9 /sql/my_json_writer.cc
parent56c60b2fc5d006206f54b93be401570837f2f312 (diff)
parent7a7d9904e12335ee8b1eea9671138b3c469a3829 (diff)
downloadmariadb-git-5b65d61d9384a45ea1b8df79694493fbb1a14e4a.tar.gz
Merge branch '5.5' into 10.1
Diffstat (limited to 'sql/my_json_writer.cc')
-rw-r--r--sql/my_json_writer.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/my_json_writer.cc b/sql/my_json_writer.cc
index 72b000df639..22c66ba7a34 100644
--- a/sql/my_json_writer.cc
+++ b/sql/my_json_writer.cc
@@ -129,6 +129,13 @@ 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)