mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '5.5' into 10.0
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
/*
|
||||
Copyright (c) 2000, 2012, Oracle and/or its affiliates.
|
||||
Copyright (c) 2010, 2012, Monty Program Ab
|
||||
|
||||
Copyright (c) 2000, 2015, Oracle and/or its affiliates.
|
||||
Copyright (c) 2010, 2015, MariaDB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -905,15 +904,10 @@ int field_conv_incompatible(Field *to, Field *from)
|
||||
{ // Be sure the value is stored
|
||||
Field_blob *blob=(Field_blob*) to;
|
||||
from->val_str(&blob->value);
|
||||
/*
|
||||
Copy value if copy_blobs is set, or source is not a string and
|
||||
we have a pointer to its internal string conversion buffer.
|
||||
*/
|
||||
if (to->table->copy_blobs ||
|
||||
(!blob->value.is_alloced() &&
|
||||
from_real_type != MYSQL_TYPE_STRING &&
|
||||
from_real_type != MYSQL_TYPE_VARCHAR))
|
||||
|
||||
if (!blob->value.is_alloced() && from->is_updatable())
|
||||
blob->value.copy();
|
||||
|
||||
return blob->store(blob->value.ptr(),blob->value.length(),from->charset());
|
||||
}
|
||||
if (from_real_type == MYSQL_TYPE_ENUM &&
|
||||
|
Reference in New Issue
Block a user