1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

BUG#46183, added character set identifier on character constants in VALUES part for column list partitioned tables to ensure constants are handled properly according to character sets

This commit is contained in:
Mikael Ronstrom
2009-10-22 18:17:59 +02:00
parent 66f056a64c
commit b980d229ff
3 changed files with 56 additions and 17 deletions

View File

@@ -2147,7 +2147,14 @@ static int add_column_list_values(File fptr, partition_info *part_info,
return 1;
}
if (item_expr->result_type() == STRING_RESULT)
{
if (field_cs)
{
err+= add_string(fptr,"_");
err+= add_string(fptr, field_cs->csname);
}
err+= add_string(fptr,"'");
}
err+= add_string_object(fptr, res);
if (item_expr->result_type() == STRING_RESULT)
err+= add_string(fptr,"'");