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 418fd54843 Bug#18239 (Possible to overload internal functions with stored functions)
Bug#21025 (misleading error message when creating functions named 'x', or 'y')
Bug#22619 (Spaces considered harmful)

This change contains a fix to report warnings or errors, and multiple tests
cases.

Before this fix, name collisions between:
- Native functions
- User Defined Functions
- Stored Functions
were not systematically reported, leading to confusing behavior.

I) Native / User Defined Function

Before this fix, is was possible to create a UDF named "foo", with the same
name as a native function "foo", but it was impossible to invoke the UDF,
since the syntax "foo()" always refer to the native function.
After this fix, creating a UDF fails with an error if there is a name
collision with a native function.

II) Native / Stored Function

Before this fix, is was possible to create a SF named "db.foo", with the same
name as a native function "foo", but this was confusing since the syntax
"foo()" would refer to the native function. To refer to the Stored Function,
the user had to use the "db.foo()" syntax.
After this fix, creating a Stored Function reports a warning if there is a
name collision with a native function.

III) User Defined Function / Stored Function

Before this fix, creating a User Defined Function "foo" and a Stored Function
"db.foo" are mutually exclusive operations. Whenever the second function is
created, an error is reported. However, the test suite did not cover this
behavior.
After this fix, the  behavior is unchanged, and is now covered by test cases.

Note that the code change in this patch depends on the fix for Bug 21114.


mysql-test/r/sp.result:
  New test cases.
mysql-test/r/udf.result:
  New test cases.
mysql-test/t/sp.test:
  New test cases.
mysql-test/t/udf.test:
  New test cases.
sql/sql_lex.cc:
  Name collisions with native functions.
sql/sql_lex.h:
  Name collisions with native functions.
sql/sql_yacc.yy:
  Name collisions with native functions.
sql/share/errmsg.txt:
  Name collisions with native functions.
mysql-test/r/sp_gis.result:
  New test cases.
mysql-test/t/sp_gis.test:
  New test cases.
2006-11-14 19:34:16 -07:00
BitKeeper Merge bk-internal:/home/bk/mysql-5.0-runtime 2006-10-03 14:26:11 +02:00
BUILD Merge brian@dib.tangent.org:/export/home/brian/mysql/gnu-5.1 2006-09-13 22:09:05 -07:00
client CMakeLists.txt: 2006-10-13 21:48:27 +02:00
cmd-line-utils Merge neptunus.(none):/home/msvensson/mysql/bug16557/my50-bug16557 2006-02-21 08:57:18 +01:00
config/ac-macros Merge trift2.:/MySQL/M51/clone-5.1 2006-11-01 13:26:03 +01:00
dbug Merge maint2.mysql.com:/data/localhome/tsmith/bk/mrg50/50 2006-09-13 09:03:52 +02:00
Docs Override "read-only" permissions when doing "make distcheck". 2006-10-11 15:32:32 +02:00
extra Merge neptunus.(none):/home/msvensson/mysql/work/my51-work 2006-09-28 09:38:26 +02:00
include Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2006-11-02 03:24:11 +03:00
libmysql Merge maint2.mysql.com:/data/localhome/tsmith/bk/mrg50/50 2006-09-13 09:03:52 +02:00
libmysql_r Re-apply missing changeset, orignally pushed by elliot 2006-06-06 14:21:07 +03:00
libmysqld Bug #23427: incompatible ABI change in 5.0.26? 2006-10-24 19:05:11 +02:00
man Makefile.am, configure.in: 2006-07-28 23:12:40 +02:00
mysql-test Bug#18239 (Possible to overload internal functions with stored functions) 2006-11-14 19:34:16 -07:00
mysys Merge trift2.:/MySQL/M51/clone-5.1 2006-11-01 13:26:03 +01:00
netware Various tool fixes, necessary to build 5.1.12-beta on Netware. 2006-10-12 18:25:27 +02:00
plugin Added license information display to output of plugins schema, and tagged all plugins with GPL flag. 2006-10-05 00:41:29 -07:00
pstack Makefile.am, configure.in: 2005-09-24 15:51:45 +02:00
regex Merge mysql.com:/home/emurphy/src/bk-clean/tmp_merge 2006-06-23 17:27:54 -04:00
scripts Merge mysql.com:/Users/kent/mysql/bk/mysql-5.0.27-release 2006-10-21 01:13:50 +02:00
server-tools IM polishing: log more information in log. 2006-10-24 18:31:10 +04:00
sql Bug#18239 (Possible to overload internal functions with stored functions) 2006-11-14 19:34:16 -07:00
sql-common Merge mysql.com:/home/gluh/MySQL/Merge/5.0 2006-09-28 14:09:31 +05:00
storage Merge bodhi.local:/opt/local/work/mysql-5.0-runtime 2006-11-02 03:30:16 +03:00
strings Merge mysql.com:/home/hf/mysql-5.0.mrg 2006-10-12 15:42:05 +05:00
support-files mysql.spec.sh: 2006-10-18 12:35:45 +02:00
tests Bug#21114 (Foreign key creation fails to table with name format) 2006-11-02 11:01:53 -07:00
unittest unittest/mytap/tap.c : 2006-10-12 22:42:43 +02:00
vio Merge neptunus.(none):/home/msvensson/mysql/work/my50-work 2006-09-28 16:22:54 +02:00
win Deleted old storage directories (introduced by a buggy 5.0 -> 5.1 merge). 2006-09-21 08:57:47 +02:00
zlib Merge mysql.com:/usr/home/ram/work/mysql-5.0-maint 2006-09-18 10:43:06 +05:00
.bzrignore Merge neptunus.(none):/home/msvensson/mysql/netware/my50-netware_libmysql_imp 2006-09-28 10:39:55 +02:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt Merge mysql.com:/Users/kent/mysql/bk/mysql-5.0.27-release 2006-10-21 01:13:50 +02:00
configure.in Merge trift2.:/MySQL/M51/clone-5.1 2006-11-01 13:26:03 +01: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
Makefile.am WL#3504 "plugin actions for engines' and plugins' unit tests" 2006-09-15 15:15:24 +02:00
README README: 2006-04-01 04:13:33 +02: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.
- For commercial distributions, see the MySQLEULA.txt 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 Installation chapter.
- For future plans, see the TODO appendix.
- For the new features/bugfix history, see the News appendix.
- For the currently known bugs/misfeatures (known errors) see the problems
  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.