summaryrefslogtreecommitdiff
path: root/sql/my_json_writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/my_json_writer.cc')
-rw-r--r--sql/my_json_writer.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/sql/my_json_writer.cc b/sql/my_json_writer.cc
index 918886142b5..7ae0c58bd7d 100644
--- a/sql/my_json_writer.cc
+++ b/sql/my_json_writer.cc
@@ -219,15 +219,15 @@ void Json_writer::add_str(const String &str)
add_str(str.ptr(), str.length());
}
-Json_writer_object::Json_writer_object(Json_writer *writer) :
- Json_writer_struct(writer)
+Json_writer_object::Json_writer_object(THD *thd) :
+ Json_writer_struct(thd)
{
if (my_writer)
my_writer->start_object();
}
-Json_writer_object::Json_writer_object(Json_writer *writer, const char *str)
- : Json_writer_struct(writer)
+Json_writer_object::Json_writer_object(THD* thd, const char *str)
+ : Json_writer_struct(thd)
{
if (my_writer)
my_writer->add_member(str).start_object();
@@ -240,15 +240,15 @@ Json_writer_object::~Json_writer_object()
closed= TRUE;
}
-Json_writer_array::Json_writer_array(Json_writer *writer) :
- Json_writer_struct(writer)
+Json_writer_array::Json_writer_array(THD *thd) :
+ Json_writer_struct(thd)
{
if (my_writer)
my_writer->start_array();
}
-Json_writer_array::Json_writer_array(Json_writer *writer, const char *str)
- :Json_writer_struct(writer)
+Json_writer_array::Json_writer_array(THD *thd, const char *str)
+ :Json_writer_struct(thd)
{
if (my_writer)
my_writer->add_member(str).start_array();