mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-307 Add functionality for database comments
This commit adds a new feature to the server to add comments at the database level. 1024 bytes is the maximum comment length allowed. If the comment length exceeds this limit, a new error/warning code 4144 is thrown, based on whether thd->is_strict_mode() is true/false. The database comment is also added to the db.opt file, as well as to the information_schema.schemata table.
This commit is contained in:
committed by
Robert Bindar
parent
9a8d1d84f8
commit
e9c6d5a1e8
@ -1945,11 +1945,12 @@ enum enum_stats_auto_recalc { HA_STATS_AUTO_RECALC_DEFAULT= 0,
|
||||
|
||||
It stores the "schema_specification" part of the CREATE/ALTER statements and
|
||||
is passed to mysql_create_db() and mysql_alter_db().
|
||||
Currently consists only of the schema default character set and collation.
|
||||
Currently consists of the schema default character set, collation and schema_comment.
|
||||
*/
|
||||
struct Schema_specification_st
|
||||
{
|
||||
CHARSET_INFO *default_table_charset;
|
||||
LEX_CSTRING *schema_comment;
|
||||
void init()
|
||||
{
|
||||
bzero(this, sizeof(*this));
|
||||
|
Reference in New Issue
Block a user