mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 00:54:30 +02:00
Portability fixes for 4.0.3 build.
Don't update MyISAM index file on UPDATE if index is not changed Build-tools/Do-compile: Remove log files as early as possible Docs/manual.texi: Changelog BitKeeper/etc/ignore: Added myisam/test2.MYD myisam/test2.MYI to the ignore list include/my_semaphore.h: Portability fix for SCO and BSDI innobase/configure.in: Don't use inline with openbsd as this cases linker problems. myisam/mi_update.c: Don't update index file on UPDATE if index is not changed mysys/my_pthread.c: Portability fix for hpux sql/item_cmpfunc.cc: Don't convert bigint to bigint
This commit is contained in:
parent
c9bda5bc7e
commit
36827564d3
8 changed files with 55 additions and 23 deletions
|
|
@ -37,10 +37,16 @@ longlong Item_func_not::val_int()
|
|||
return !null_value && value == 0 ? 1 : 0;
|
||||
}
|
||||
|
||||
/*
|
||||
Convert a constant expression or string to an integer.
|
||||
This is done when comparing DATE's of different formats and
|
||||
also when comparing bigint to strings (in which case the string
|
||||
is converted once to a bigint).
|
||||
*/
|
||||
|
||||
static bool convert_constant_item(Field *field, Item **item)
|
||||
{
|
||||
if ((*item)->const_item())
|
||||
if ((*item)->const_item() && (*item)->type() != Item::INT_ITEM)
|
||||
{
|
||||
if (!(*item)->save_in_field(field) &&
|
||||
!((*item)->null_value))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue