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 5 times, most recently from e96fd4d to e42b8fb Compare November 24, 2025 04:16
…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 e42b8fb to f4318f3 Compare November 24, 2025 12:16
@bsrikanth-mariadb bsrikanth-mariadb merged commit f4318f3 into main Nov 24, 2025
17 of 18 checks passed
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