Skip to content

Conversation

@bsrikanth-mariadb
Copy link
Contributor

Move classes Json_string, and Json_saved_parser_state from opt_histogram_json.cc to the newly created file sql_json_lib.h Additionally, make the function json_unescape_to_string public earlier defined as static in opt_histogram_json.cc, by
adding the declaration in sql_json_lib.h

Needed this change so that, the classes and functions can be reused in other pieces of the code.

@spetrunia
Copy link
Member

Make the commit title be:

MDEV-38120: Move Json_string and Json_saved_parser_state into sql_json_lib.h

@spetrunia spetrunia self-requested a review November 20, 2025 09:19
Copy link
Member

@spetrunia spetrunia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Address input above and good to push.

@spetrunia
Copy link
Member

Get this pushed,
then rebase the #4255 on top of the newer main so that it doesn't include these changes.

@bsrikanth-mariadb bsrikanth-mariadb changed the title mdev-38120: create sql_json_lib.h MDEV-38120: Move Json_string and Json_saved_parser_state into sql_json_lib.h Nov 20, 2025
@bsrikanth-mariadb bsrikanth-mariadb force-pushed the 12.3-mdev-38120-create-sql_json_lib-file branch 3 times, most recently from 4120cc7 to c77eaf2 Compare November 20, 2025 16:10
…n_lib.h

Move classes Json_string, and Json_saved_parser_state from
opt_histogram_json.cc to the newly created file sql_json_lib.h
Additionally, make the function json_unescape_to_string public earlier
defined as static in opt_histogram_json.cc, by
adding the declaration in sql_json_lib.h

Needed this change so that, the classes and functions can be reused in
other pieces of the code.
@bsrikanth-mariadb bsrikanth-mariadb force-pushed the 12.3-mdev-38120-create-sql_json_lib-file branch from c77eaf2 to e96fd4d Compare November 22, 2025 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants