From ce272f7c2959d4fcf1cefc9d048e7ff90f0b31a6 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Tue, 23 Jul 2024 14:58:24 +0300 Subject: [PATCH] Remove unused Table_function_json_table::m_text_literal_cs --- sql/json_table.h | 3 --- sql/sql_yacc.yy | 7 ------- 2 files changed, 10 deletions(-) diff --git a/sql/json_table.h b/sql/json_table.h index 545dfb0aa90..d228fdb1fad 100644 --- a/sql/json_table.h +++ b/sql/json_table.h @@ -260,9 +260,6 @@ public: /* SQL Parser: current column in JSON_TABLE (...) syntax */ Json_table_column *m_cur_json_table_column; - /* SQL Parser: charset of the current text literal */ - CHARSET_INFO *m_text_literal_cs; - private: /* Context to be used for resolving the first argument. */ Name_resolution_context *m_context; diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 50a115a3201..9a21a93c788 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -11581,16 +11581,9 @@ table_ref: json_text_literal: TEXT_STRING - { - Lex->json_table->m_text_literal_cs= NULL; - } | NCHAR_STRING - { - Lex->json_table->m_text_literal_cs= national_charset_info; - } | UNDERSCORE_CHARSET TEXT_STRING { - Lex->json_table->m_text_literal_cs= $1; $$= $2; } ;