mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Now string values are created and filled with charset field
SELECT func(charset2) FROM t ORDER BY 1 works in correct charset
This commit is contained in:
@ -33,7 +33,7 @@ print_where(COND *cond,const char *info)
|
||||
if (cond)
|
||||
{
|
||||
char buff[256];
|
||||
String str(buff,(uint32) sizeof(buff));
|
||||
String str(buff,(uint32) sizeof(buff), default_charset_info);
|
||||
str.length(0);
|
||||
cond->print(&str);
|
||||
str.append('\0');
|
||||
@ -99,7 +99,8 @@ void print_cached_tables(void)
|
||||
void TEST_filesort(SORT_FIELD *sortorder,uint s_length, ha_rows special)
|
||||
{
|
||||
char buff[256],buff2[256];
|
||||
String str(buff,sizeof(buff)),out(buff2,sizeof(buff2));
|
||||
String str(buff,sizeof(buff),default_charset_info);
|
||||
String out(buff2,sizeof(buff2),default_charset_info);
|
||||
const char *sep;
|
||||
DBUG_ENTER("TEST_filesort");
|
||||
|
||||
|
Reference in New Issue
Block a user