summaryrefslogtreecommitdiff
path: root/sql/my_json_writer.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '10.3' into 10.4Oleksandr Byelkin2019-06-141-0/+8
|\
| * Merge branch '10.2' into 10.3Oleksandr Byelkin2019-06-141-0/+7
| |\
| | * Merge branch '5.5' into 10.1Oleksandr Byelkin2019-06-121-0/+7
| | |
* | | Merge branch '10.3' into 10.4Oleksandr Byelkin2019-05-191-1/+1
|\ \ \ | |/ /
| * | Merge 10.2 into 10.3Marko Mäkelä2019-05-141-1/+1
| |\ \ | | |/
| | * Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-111-1/+1
| | |
* | | Minor cleanup in the optimizer trace code.Varun Gupta2019-02-181-5/+15
| | | | | | | | | | | | More test coverage added for the optimizer trace.
* | | MDEV-6111 Optimizer TraceVarun Gupta2019-02-131-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This task involves the implementation for the optimizer trace. This feature produces a trace for any SELECT/UPDATE/DELETE/, which contains information about decisions taken by the optimizer during the optimization phase (choice of table access method, various costs, transformations, etc). This feature would help to tell why some decisions were taken by the optimizer and why some were rejected. Trace is session-local, controlled by the @@optimizer_trace variable. To enable optimizer trace we need to write: set @@optimizer_trace variable= 'enabled=on'; To display the trace one can run: SELECT trace FROM INFORMATION_SCHEMA.OPTIMIZER_TRACE; This task also involves: MDEV-18489: Limit the memory used by the optimizer trace introduces a switch optimizer_trace_max_mem_size which limits the memory used by the optimizer trace. This was implemented by Sergei Petrunia.
* | | Extending the API for json_writer by introdcingVarun Gupta2019-02-131-8/+65
|/ / | | | | | | | | | | classes for Json_writer_object and Json_writer_array. These classes will be used for the implementation of the optimizer trace.
* | MDEV-15091 : Windows, 64bit: reenable and fix warning C4267 (conversion from ↵Vladislav Vaintroub2018-02-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | 'size_t' to 'type', possible loss of data) Handle string length as size_t, consistently (almost always:)) Change function prototypes to accept size_t, where in the past ulong or uint were used. change local/member variables to size_t when appropriate. This fix excludes rocksdb, spider,spider, sphinx and connect for now.
* | Enusure that my_global.h is included firstMichael Widenius2017-08-241-1/+1
|/ | | | | | | | | | - Added sql/mariadb.h file that should be included first by files in sql directory, if sql_plugin.h is not used (sql_plugin.h adds SHOW variables that must be done before my_global.h is included) - Removed a lot of include my_global.h from include files - Removed include's of some files that my_global.h automatically includes - Removed duplicated include's of my_sys.h - Replaced include my_config.h with my_global.h
* Correct FSF addressiangilfillan2017-03-101-1/+1
|
* MDEV-11711: ArmHF EXPLAIN JSON garbage longlong values printedVicențiu Ciorbaru2017-01-161-4/+4
| | | | Make sure printing with snprintf uses the correct typed parameters.
* MDEV-10665: Json_writer produces extra members in outputSergei Petrunia2016-08-251-0/+2
| | | | | | | | Fix an issue in Single_line_formatting_helper: flush_on_one_line() didn't clean up the buffered items which could cause them to be printed for the second time. This can't be ever observed by a user (see MDEV text for details).
* MDEV-7836: ANALYZE FORMAT=JSON should provide info about GROUP/ORDER BYSergei Petrunia2015-04-121-0/+21
| | | | Provide basic info about sorting/grouping done by the queries.
* EXPLAIN FORMAT=JSON : Fix MDEV-7266, bug in pretty-printerSergei Petrunia2014-12-061-1/+5
| | | | | | - Single_line_formatting_helper should not accidentally exit the DISABLED state. No JSON construct should be able to move the Single_line_formatting_helper from DISABLED state.
* Code cleanupSergei Petrunia2014-12-021-1/+14
|
* ANALYZE FORMAT=JSON: better output and testsSergei Petrunia2014-11-291-0/+6
| | | | | | - Print r_loops - Always print r_* members. Print NULL values if no scans took place - Added testcases.
* EXPLAIN FORMAT=JSON: further developmentSergei Petrunia2014-11-271-4/+20
| | | | | | | | | | Writing JSON: - Fix a bug in Single_line_formatting_helper - Add Json_writer_nesting_guard - safety class EXPLAIN JSON support - Add basic subquery support - Add tests for UNION/UNION ALL.
* MDEV-6109: EXPLAIN JSONSergei Petrunia2014-08-121-12/+193
| | | | Add pretty-printing of possible_keys column.
* MDEV-6109: EXPLAIN JSONSergei Petrunia2014-08-091-1/+1
| | | | | | - Add first testcases - Don't overquote when printing conditions - Other small output fixes
* MDEV-6109: EXPLAIN JSON10.1-explain-jsonSergei Petrunia2014-05-271-0/+129
- First code, "EXPLAIN FORMAT=JSON stmt" and "ANALYZE FORMAT=JSON stmt" work for basic queries. Complex constructs (e.g subqueries, etc) not yet supported. - No test infrastructure yet