[MDEV-17006] Make "get_field_default_value" a non "static" function Created: 2018-08-16  Updated: 2018-08-16

Status: Open
Project: MariaDB Server
Component/s: Compiling
Fix Version/s: None

Type: Task Priority: Major
Reporter: Ravi Prakash (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

To implement "Create Table <table-name> LIKE <existing-table-name>" statement in the ColumnStore engine it needs to re-create the CREATE TABLE statement and process it in the DDL processing code of the ColumnStore. An easy way to do this is to iterate over the list of column fields and create appropriate SQL parts for each column. sql_show.cc contains a nice function get_field_default_values() that decodes the Field and other associated data structures to create the default value SQL string. Currently this function is static so cannot be called from anywhere else. Therefore if it can be made non-static, code duplication can be avoided.


Generated at Thu Feb 08 08:33:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.