From 5dcc56be4d9979e9be927b68f4e62df7a6c3d5a1 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Tue, 20 Sep 2022 10:29:37 +0400 Subject: MDEV-29561 SHOW CREATE TABLE produces syntactically incorrect structure --- sql/sql_string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sql/sql_string.h') diff --git a/sql/sql_string.h b/sql/sql_string.h index 4f9a68acbb4..6d782e9b0a9 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -147,6 +147,10 @@ public: LEX_CSTRING collation_specific_name() const; bool encoding_allows_reinterpret_as(CHARSET_INFO *cs) const; bool eq_collation_specific_names(CHARSET_INFO *cs) const; + bool can_have_collate_clause() const + { + return m_charset != &my_charset_bin; + } }; class String : public Sql_alloc -- cgit v1.2.1