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
Georgi Kodinov d7a22ed9a9 Bug #44399: crash with statement using TEXT columns, aggregates, GROUP BY,
and HAVING

When calculating GROUP BY the server caches some expressions. It does
that by allocating a string slot (Item_copy_string) and assigning the 
value of the expression to it. This effectively means that the result
type of the expression can be changed from whatever it was to a string.
As this substitution takes place after the compile-time result type 
calculation for IN but before the run-time type calculations, 
it causes the type calculations in the IN function done at run time 
to get unexpected results different from what was prepared at compile time.

In the CASE ... WHEN ... THEN ... statement there was a similar problem
and it was solved by artificially adding a STRING argument to the matrix
at compile time, so if any of the arguments of the CASE function changes 
its type to a string it will still be covered by the information prepared 
at compile time.
Extended the CASE fix for cover the IN case.
An alternative way of fixing this problem is by caching the result type of 
the arguments at compile time and using the cached information at run time
instead of re-calculating the result types.
Preferred the CASE approach for uniformity and fix localization.

mysql-test/r/func_in.result:
  Bug #44399: test case
mysql-test/t/func_in.test:
  Bug #44399: test case
sql/item_cmpfunc.cc:
  Bug #44399: assume at compile time there's an extra string argument
  in the IN function (similar to CASE) to cater for possible string 
  conversions in the process of calculating the GROUP BY/aggregates.
2009-05-12 16:59:17 +03:00
.bzr-mysql Merge some merge changesets from 5.0 up into 5.1-build 2009-04-14 20:26:22 +02:00
BitKeeper Merge community up to enterprise, thus ending the community-server 2009-05-06 09:06:32 -04:00
BUILD
client Merge from 5.0-bugteam 2009-05-13 08:48:00 -07:00
cmd-line-utils A few portability tweaks for Netware, SCO and QNX 2009-05-01 19:35:04 +02:00
config/ac-macros Automerge 2009-03-25 16:23:47 +03:00
dbug
Docs
extra Fix incorrect filename in verbose output of innochecksum. (Bug #44484, 2009-05-05 11:07:26 -07:00
include Fix improperly-protected variable definition and use. 2009-05-11 10:00:03 -04:00
libmysql auto-merge 2009-03-17 16:29:24 -04:00
libmysql_r
libmysqld Bug #43715 Link errors when trying to link mysql_embedded.exe 2009-03-17 23:28:24 +01:00
man
mysql-test Bug #44399: crash with statement using TEXT columns, aggregates, GROUP BY, 2009-05-12 16:59:17 +03:00
mysys Fix a bad merge: 2009-05-15 09:53:50 +02:00
netware
plugin
pstack
regex
scripts merged 5.1-main -> 5.1-bugteam 2009-05-15 16:03:22 +03:00
server-tools merging 2009-04-28 14:48:54 +05:00
sql Bug #44399: crash with statement using TEXT columns, aggregates, GROUP BY, 2009-05-12 16:59:17 +03:00
sql-bench Up-merge from 5.0 2009-03-11 15:03:25 -06:00
sql-common auto-merge 2009-03-19 09:42:36 -04:00
storage merge to 5.1-bugteam tree 2009-05-19 14:01:29 +05:30
strings Bug#44352 UPPER/LOWER function doesn't work correctly 2009-05-05 11:55:22 +05:00
support-files Merge community up to enterprise, thus ending the community-server 2009-05-06 09:06:32 -04:00
tests Bug#23471 prepared for commit in 5.1 gca branch 2009-05-05 12:34:25 +02:00
unittest
vio Bug#33899: Deadlock in mysql_real_query with shared memory connections 2009-03-26 20:25:10 -03:00
win Bug #44353 build-v9.bat is missing in source archive 2009-04-24 14:49:07 +05:30
zlib
.bzrignore Bug#40446 - mysql-test-run --gcov is broken 2009-02-27 12:20:53 +01:00
.cvsignore
CMakeLists.txt merge fix for 43082 from 5.0-bugteam 2009-02-25 17:02:34 +01:00
configure.in Raise version number after cloning 5.1.35 2009-05-14 13:07:11 +02:00
COPYING
EXCEPTIONS-CLIENT
INSTALL-SOURCE
INSTALL-WIN-SOURCE
Makefile.am
README Added clarification about GPL v2, changed to Sun Microsystems, Inc. 2009-05-05 16:27:35 +02:00

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

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.

GPLv2 Disclaimer
For the avoidance of doubt, except that if any license choice
other than GPL or LGPL is available it will apply instead, Sun
elects to use only the General Public License version 2 (GPLv2)
at this time for any software where a choice of GPL license versions
is made available with the language indicating that GPLv2 or any
later version may be used, or where a choice of which version of
the GPL is applied is otherwise unspecified.

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.