mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Merge sinisa@work.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
This commit is contained in:
commit
164ab11b29
3 changed files with 5 additions and 4 deletions
|
@ -22,7 +22,7 @@
|
|||
#select load_file("/tmp/select-test.not-exist");
|
||||
#drop table t1;
|
||||
#drop table if exists t;
|
||||
#CREATE TABLE t ( t timestamp NOT NULL, c char(200) character set latin1 NOT NULL default '', KEY t (t)) TYPE=MyISAM;
|
||||
#INSERT INTO t VALUES ('2002-12-20 12:01:20','');
|
||||
#select * from t into outfile "fdg";
|
||||
#CREATE TABLE t ( t timestamp NOT NULL, c char(200) character set latin1 NOT NULL default '', i int(11), v varchar(200), b blob, KEY t (t)) TYPE=MyISAM;
|
||||
#INSERT INTO t VALUES ('2002-12-20 12:01:20','',1,"aaa","bbb");
|
||||
#select * from t into outfile "check";
|
||||
#drop table if exists t;
|
||||
|
|
|
@ -2844,7 +2844,6 @@ String *Field_timestamp::val_str(String *val_buffer,
|
|||
val_buffer->alloc(field_length+1);
|
||||
char *to=(char*) val_buffer->ptr(),*end=to+field_length;
|
||||
val_buffer->length(field_length);
|
||||
val_buffer->set_charset(val_ptr->charset());
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
if (table->db_low_byte_first)
|
||||
|
|
|
@ -193,6 +193,7 @@ String *Item_field::val_str(String *str)
|
|||
{
|
||||
if ((null_value=field->is_null()))
|
||||
return 0;
|
||||
str->set_charset(str_value.charset());
|
||||
return field->val_str(str,&str_value);
|
||||
}
|
||||
|
||||
|
@ -215,6 +216,7 @@ String *Item_field::str_result(String *str)
|
|||
{
|
||||
if ((null_value=result_field->is_null()))
|
||||
return 0;
|
||||
str->set_charset(str_value.charset());
|
||||
return result_field->val_str(str,&str_value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue