MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
unknown c4a4df5aa4 Bug#28261: Wrong DATETIME comparison result when the GET_USER_VAR function
is involved.

The Arg_comparator::compare_datetime() comparator caches its arguments if
they are constants i.e. const_item() returns true. The
Item_func_get_user_var::const_item() returns true or false based on
the current query_id and the query_id where the variable was created.
Thus even if a query can change its value its const_item() still will return
true. All this leads to a wrong comparison result when an object of the
Item_func_get_user_var class is involved.

Now the Arg_comparator::can_compare_as_dates() and the
get_datetime_value() functions never cache result of the GET_USER_VAR()
function (the Item_func_get_user_var class).


mysql-test/t/type_datetime.test:
  A test case is added for the bug#28261: Wrong DATETIME comparison result when the GET_USER_VAR function
  is involved.
mysql-test/r/type_datetime.result:
  A test case is added for the bug#28261: Wrong DATETIME comparison result when the GET_USER_VAR function
  is involved.
sql/item_cmpfunc.cc:
  Bug#28261: Wrong DATETIME comparison result when the GET_USER_VAR function
  is involved.
  Now the Arg_comparator::can_compare_as_dates() and the
  get_datetime_value() functions never cache result of the GET_USER_VAR()
  function (the Item_func_get_user_var class).
2007-05-17 23:09:45 +04:00
bdb my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
BitKeeper Bug#25807: LOAD DATA INFILE does not work with Pipes 2007-02-13 16:35:29 -05:00
BUILD BUG#27701 Arguments to some compile-pentium* scripts were not properly passed to SETUP.sh. Besides the old way not working with some shells, single arguments that contained whitespace were also broken up. This patch tries to fix both errors. 2007-04-10 17:50:43 +02:00
client Format corrections for various "Makefile.am": Leading tab, no trailing blank. 2007-05-02 14:01:49 +02:00
cmd-line-utils Fixed compiler warnings. 2007-02-28 22:23:35 +02:00
config/ac-macros Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build-work-25601 2007-04-11 13:32:40 +02:00
dbug dbug/dbug_analyze.c : Avoid the unresolved symbol "my_thread_global_init()" 2007-04-23 13:36:18 +02:00
debian Change mode to -rw-rw-r-- 2007-04-19 21:59:25 -07:00
Docs Merge mysql.com:/home/kent/bk/tmp/mysql-4.1-build 2007-03-22 19:43:41 +01:00
extra Bug #27390: mysqld_multi --config-file= not working as documented 2007-04-28 01:27:54 +02:00
heap Merge bk-internal.mysql.com:/home/bk/mysql-5.0-engines 2007-03-22 21:34:31 +01:00
include Bug #27957 cast as decimal does not check overflow, also inconsistent with group, subselect 2007-05-09 17:27:14 +05:00
innobase Apply innodb-5.0-ss1405 snapshot 2007-04-18 19:36:22 -06:00
libmysql Bug#24732 Executables do not include Vista manifests 2007-04-23 15:41:24 -04:00
libmysql_r my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
libmysqld Format corrections for various "Makefile.am": Leading tab, no trailing blank. 2007-05-02 14:01:49 +02:00
man my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
myisam Merge svojtovich@bk-internal.mysql.com:/home/bk/mysql-5.0-build 2007-04-27 00:56:50 +05:00
myisammrg Merge mysql.com:/home/svoj/devel/mysql/BUG24342/mysql-4.1-engines 2007-04-18 16:22:23 +05:00
mysql-test Bug#28261: Wrong DATETIME comparison result when the GET_USER_VAR function 2007-05-17 23:09:45 +04:00
mysys Merge damien-katzs-computer.local:/Users/dkatz/mysql50 2007-04-30 17:04:14 -04:00
ndb enable setting api reg req frequency to be higher than heartbeat setting to ensure we have reasonably up-to-date info from ndb nodes 2007-05-09 15:03:01 +02:00
netware Format corrections for various "Makefile.am": Leading tab, no trailing blank. 2007-05-02 14:01:49 +02:00
os2 my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
pstack my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
regex my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
scripts Better distinction between "CLEANFILES" and "DISTCLEANFILES" for some generated files 2007-05-03 15:51:02 +02:00
server-tools Bug#24732 Executables do not include Vista manifests 2007-04-23 15:41:24 -04:00
sql Bug#28261: Wrong DATETIME comparison result when the GET_USER_VAR function 2007-05-17 23:09:45 +04:00
sql-bench my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql-common Merge pilot.blaudden:/home/msvensson/mysql/bug24121/my50-bug24121 2007-03-29 13:37:40 +02:00
SSL my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
strings Bug #27957 cast as decimal does not check overflow, also inconsistent with group, subselect 2007-05-09 17:27:14 +05:00
support-files Merge trift2.:/MySQL/M41/spec-4.1 2007-05-02 16:53:54 +02:00
tests Merge bk@192.168.21.1:mysql-5.0 2007-04-29 18:42:50 +05:00
tools Fixed compiler warnings (for linux and win32 and win64) 2007-02-22 16:59:57 +02:00
VC++Files mysql.sln: 2007-04-19 22:56:04 +02:00
vio Merge pilot.blaudden:/home/msvensson/mysql/bug21611/my50-bug21611 2007-04-11 21:03:29 +02:00
win Format corrections for various "Makefile.am": Leading tab, no trailing blank. 2007-05-02 14:01:49 +02:00
zlib my_memmem.c: 2007-04-11 01:47:42 +02:00
.bzrignore Bug#24732 Executables do not include Vista manifests 2007-04-23 15:41:24 -04:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt Merge dfischer@bk-internal.mysql.com:/home/bk/mysql-5.0-build 2007-05-02 19:21:50 +02:00
configure.in Merge trift-lap.fambruehe:/MySQL/M50/mysql-5.0 2007-04-26 16:06:44 +02:00
COPYING - manual.texi will be replaced with a manual written in DocBook/XML. This ChangeSet removes all 2005-04-13 11:51:38 +02:00
EXCEPTIONS-CLIENT EXCEPTIONS-CLIENT: 2007-03-14 18:28:16 +01:00
Makefile.am Merge trift-lap.fambruehe:/MySQL/M50/clone-5.0 2007-04-26 16:48:53 +02:00
README make_binary_distribution.sh: 2006-11-07 22:26:37 +01:00

This is a release of MySQL, a dual-license SQL database server.
MySQL is brought to you by the MySQL team at MySQL AB.

License information can be found in these files:
- For GPL (free) distributions, see the COPYING file and
  the EXCEPTIONS-CLIENT file.
- For commercial distributions, see the LICENSE.mysql file.


For further information about MySQL or additional documentation, see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some manual sections of special interest:

- If you are migrating from an older version of MySQL, please read the
  "Upgrading from..." section first!
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installing and Upgrading chapter.
- For the new features/bugfix history, see the Change History appendix.
- For the currently known bugs/misfeatures (known errors) see the Problems
  and Common Errors appendix.
- For a list of developers and other contributors, see the Credits
  appendix.

A local copy of the MySQL Reference Manual can be found in the Docs
directory in GNU Info format.  You can also browse the manual online or
download it in any of several formats at the URL given earlier in this
file.

************************************************************

IMPORTANT:

Bug or error reports should be sent to http://bugs.mysql.com.