1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Charset of any string field now can be specified during CREATE TABLE

This commit is contained in:
bar@gw.udmsearch.izhnet.ru
2002-06-07 17:23:33 +05:00
parent b62fafaa15
commit 1a91646854
14 changed files with 63 additions and 47 deletions

View File

@@ -2824,7 +2824,7 @@ bool add_field_to_list(char *field_name, enum_field_types type,
char *length, char *decimals,
uint type_modifier,
Item *default_value, Item *comment,
char *change, TYPELIB *interval)
char *change, TYPELIB *interval, CHARSET_INFO *cs)
{
register create_field *new_field;
THD *thd=current_thd;
@@ -2877,7 +2877,7 @@ bool add_field_to_list(char *field_name, enum_field_types type,
new_field->change=change;
new_field->interval=0;
new_field->pack_length=0;
new_field->charset=0; // QQ: To be fixed
new_field->charset=cs;
if (!comment)
{