summaryrefslogtreecommitdiff
path: root/sql/my_json_writer.cc
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2014-11-29 03:07:24 +0300
committerSergei Petrunia <psergey@askmonty.org>2014-11-29 03:07:24 +0300
commite235bb864d2b8daae3dc7061249f59fb0127bdc5 (patch)
treee8b48285ac8e14a5e0c004ccdcba6d60d3bc71ca /sql/my_json_writer.cc
parent0b5d989c894a14ebcb786940fafd025e31523d8b (diff)
downloadmariadb-git-e235bb864d2b8daae3dc7061249f59fb0127bdc5.tar.gz
ANALYZE FORMAT=JSON: better output and tests
- Print r_loops - Always print r_* members. Print NULL values if no scans took place - Added testcases.
Diffstat (limited to 'sql/my_json_writer.cc')
-rw-r--r--sql/my_json_writer.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/my_json_writer.cc b/sql/my_json_writer.cc
index 99be150ea93..6f36a1e4ff3 100644
--- a/sql/my_json_writer.cc
+++ b/sql/my_json_writer.cc
@@ -131,6 +131,12 @@ void Json_writer::add_bool(bool val)
}
+void Json_writer::add_null()
+{
+ add_unquoted_str("null");
+}
+
+
void Json_writer::add_unquoted_str(const char* str)
{
if (fmt_helper.on_add_str(str))