Commit 1b23e50c authored by unknown's avatar unknown

Fixed benchmarks and compare of NULL with <>


Docs/manual.texi:
  Update for release
include/config-win.h:
  Fixed typo
sql-bench/test-insert.sh:
  Fixed that the new tests works with --fast
sql/item_cmpfunc.cc:
  Fix of NULL values with '<>'
parent d5a00b2c
......@@ -38035,6 +38035,8 @@ though, so 3.23 is not released as a stable version yet.
@appendixsubsec Changes in release 3.23.26
@itemize @bullet
@item
Fixed that @code{<>} works properly with @code{NULL}.
@item
Fixed problem with @code{SUBSTRING_INDEX()} and @code{REPLACE()}.
(Patch by Alexander Igonitchev)
@item
......@@ -33,7 +33,7 @@
#endif
#ifdef _WIN64
#define MACHINE_TYPE "i64" /* Define to machine type name */
#define MACHINE_TYPE "ia64" /* Define to machine type name */
#else
#define MACHINE_TYPE "i32" /* Define to machine type name */
#ifndef _WIN32
......
......@@ -867,6 +867,10 @@ if ($server->small_rollback_segment())
if ($limits->{'insert_select'})
{
if ($opt_lock_tables)
{
$sth = $dbh->do("UNLOCK TABLES") || die $DBI::errstr;
}
print "\nTesting INSERT INTO ... SELECT\n";
do_many($dbh,$server->create("bench2",
["id int NOT NULL",
......@@ -911,6 +915,10 @@ if ($limits->{'insert_select'})
$dbh->disconnect; # close connection
$dbh = $server->connect();
}
if ($opt_lock_tables)
{
$sth = $dbh->do("LOCK TABLES bench1 WRITE") || die $DBI::errstr;
}
}
......
......@@ -185,7 +185,7 @@ longlong Item_func_equal::val_int()
longlong Item_func_ne::val_int()
{
int value=(this->*cmp_func)();
return value != 0 ? 1 : 0;
return value != 0 && !null_value ? 1 : 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment