69 while (_result_set->next())
72 bool got_error =
false;
74 for (
size_t x= 0; x < _result_set->getMetaData().getColumnCount() && got_error ==
false; x++)
77 if (not _result_set->isNull(x))
80 Json::Features json_conf;
81 Json::Reader readrow(json_conf);
82 std::string col_name = _result_set->
getColumnInfo(x).col_name;
83 bool r = readrow.parse(_result_set->getString(x), json_doc);
86 _json_out[
"error_type"]=
"json parse error on row value";
87 _json_out[
"error_internal_sql_column"]=col_name;
89 json_row[col_name]= _result_set->getString(x);
95 json_row[col_name]= json_doc;
100 _json_out[
"result_set"].append(json_row);
102 _json_out[
"sqlstate"]= exception.getSQLState();