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 f60ea28841 Bug#19356: Assert on undefined @uservar in prepared statement execute
The executing code had a safety assertion so that it refused to free Items
that it didn't create.  However, there is a case, undefined user variables,
which would put Items into the list to be freed.

Instead, do something that is more risky in expectation that the code will 
be refactored soon, as Kostja wants to do:  Remove the assertions from 
prepare() and execute().  Put one assertion at a higher level, before 
stmt->set_params_from_vars(), which may then create new to-be-freed Items .


mysql-test/r/ps_11bugs.result:
  Create tests to prove that undefined variables work, as keys and not, and 
  that variables explicitly assigned to Null work.
mysql-test/t/ps_11bugs.test:
  Create tests to prove that undefined variables work, as keys and not, and 
  that variables explicitly assigned to Null work.
sql/sql_prepare.cc:
  Move a safety assertion up one level and higher, because there is 
  legitimately a case where thd->free_list is not NULL going into 
  Prepared_statement::{prepare,execute} methods.
  
  Kostja plans to refactor this code so that it is both safe and works.  
  (Now it works, but isn't very safe.)
2006-10-04 11:19:23 -04:00
bdb make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
BitKeeper Bug#19356: Assert on undefined @uservar in prepared statement execute 2006-10-04 11:19:23 -04:00
BUILD Merge perch.ndb.mysql.com:/home/jonas/src/mysql-5.0 2006-09-01 10:20:35 +02:00
client Merge ted.mysql.internal:/home/ted/src/mysql/mysql-5.0-maint 2006-09-15 04:32:58 +04:00
cmd-line-utils Merge neptunus.(none):/home/msvensson/mysql/bug16557/my50-bug16557 2006-02-21 08:58:19 +01:00
config/ac-macros Bug#21327 OpenSSL-checking in configure 2006-08-14 20:16:47 +02:00
dbug make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
Docs Merge mysql.com:/home/tomash/src/mysql_ab/tmp_merge 2006-05-06 11:18:42 +04:00
extra Bug#22326 Build problems on hurd-i386: conflicting declaration of socklen_t 2006-09-15 15:41:04 +02:00
heap make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
include Fix merge of __attribute__ cleanup. 2006-09-28 20:15:58 -07:00
innobase make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
libmysql make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
libmysql_r Bug#19575 MySQL-shared-5.0.21-0.glibc23 causes segfault in SSL_library_init 2006-05-31 16:19:06 +02:00
libmysqld bug #16513 (no mysql_set_server_option in libmysqld.dll export) 2006-08-19 15:15:36 +05:00
man Makefile.am, configure.in: 2006-07-28 23:12:40 +02:00
myisam make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
myisammrg make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
mysql-test Bug#19356: Assert on undefined @uservar in prepared statement execute 2006-10-04 11:19:23 -04:00
mysys Bug #18246: compilation error with tcp_wrapper 2006-09-11 16:23:45 -07:00
ndb Merge msvensson.mysql.internal:mysql/my50-m-bug16574 2006-09-15 16:55:47 +02:00
netware Merge mysql.com:/Users/kent/mysql/bk/mysql-4.0 2006-07-24 10:59:51 +02:00
os2 Merge 2005-09-29 03:20:31 +02:00
pstack Makefile.am, configure.in: 2005-09-24 15:51:45 +02:00
regex make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
scripts Add SSL specific linker flags to --libmysqld-libs (Bug #21239) 2006-09-15 16:35:50 +02:00
server-tools make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
sql Bug#19356: Assert on undefined @uservar in prepared statement execute 2006-10-04 11:19:23 -04:00
sql-bench Set thread_stack after return from end_thread() 2005-12-03 18:13:06 +02:00
sql-common Merge mysql.com:/home/gluh/MySQL/Merge/4.1-merge 2006-09-07 15:17:46 +05:00
SSL Remove client-req-pem and server-req.pem 2006-05-03 11:53:16 +02:00
strings make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
support-files Merge mysql.com:/Users/kent/mysql/bk/bug17194/my50-bug17194 2006-08-24 14:51:54 +02:00
tests Merge shellback.(none):/home/msvensson/mysql/bug22139/my50-bug22139 2006-09-15 16:42:27 +02:00
tools Bug#19575 MySQL-shared-5.0.21-0.glibc23 causes segfault in SSL_library_init 2006-05-31 16:19:06 +02:00
VC++Files Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0 2006-08-06 16:47:49 +02:00
vio Merge shellback.(none):/home/msvensson/mysql/work/my50-work 2006-09-15 14:31:25 +02:00
win Additional files for cmake support 2006-08-31 19:52:42 +02:00
zlib make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
.bzrignore Merge rolltop.ignatz42.dyndns.org:/mnt/storeage/winbkfix/my50-winbkfix 2006-09-13 14:18:36 -04:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt Additional files for cmake support 2006-08-31 19:52:42 +02:00
configure.in Merge shellback.(none):/home/msvensson/mysql/bug20602/my50-bug20602 2006-09-15 16:57:37 +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
Makefile.am make dist changes for Cmake build 2006-09-01 10:32:12 +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.