mariadb/client
kaa@polly.(none) 2bb849644b Bug #30164: Using client side macro inside server side comments generates broken queries
Problem:
  
In cases when a client-side macro appears inside a server-side comment, the add_line() function in mysql.cc discarded all characters until the next delimiter to remove macro arguments from the query string. This resulted in broken queries being sent to the server when the next delimiter character appeared past the comment's boundaries, because the comment closing sequence ('*/') was discarded.
  
Fix:
  
If a client-side macro appears inside a server-side comment, discard all characters in the comment after the macro (that is, until the end of the comment rather than the next delimiter).
This is a minimal fix to allow only simple cases used by the mysqlbinlog utility. Limitations that are worth documenting:
  
- Nested server-side and/or client-side comments are not supported by mysql.cc
- Using client-side macros in multi-line server-side comments is not supported
- All characters after a client-side macro in a server-side comment will be omitted from the query string (and thus, will not be sent to server).
2007-08-30 12:53:24 +04:00
..
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
client_priv.h Bug #26817: mysqldump fails to backup database containing view with invalid definer 2007-03-23 19:24:03 +01:00
CMakeLists.txt CMakeLists.txt (several), make_win_bin_dist: 2007-08-02 12:49:27 +02:00
completion_hash.cc Many files: 2006-12-23 20:17:15 +01:00
completion_hash.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
echo.c echo.c: 2007-03-20 18:31:49 +01:00
get_password.c Many files: 2006-12-23 20:17:15 +01:00
Makefile.am Format corrections for various "Makefile.am": Leading tab, no trailing blank. 2007-05-02 14:01:49 +02:00
my_readline.h Many files: 2006-12-23 20:17:15 +01:00
mysql.cc Bug #30164: Using client side macro inside server side comments generates broken queries 2007-08-30 12:53:24 +04:00
mysql_upgrade.c Use a temp variable "error" for storing return code of pclose 2007-04-23 13:27:55 +02:00
mysqladmin.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysqlbinlog.cc Bug#27171 mysqlbinlog produces different output depends from option -R 2007-04-10 15:26:35 +02:00
mysqlcheck.c Many files: 2006-12-23 20:17:15 +01:00
mysqldump.c Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2007-07-31 20:03:52 +04:00
mysqlimport.c my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysqlmanager-pwgen.c Avoid the name conflict between the system-provided "md5.h" and the MySQL one 2007-07-19 14:14:03 +02:00
mysqlmanagerc.c Many files: 2006-12-23 20:17:15 +01:00
mysqlshow.c my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
mysqltest.c When opening a new connecgtion, changed mysqltest to prefer a brand new connection slot over an existing, closed slot. Fixes a problem with reused slots that can cause tests to fail. bug#29579 2007-07-13 01:55:04 -04:00
readline.cc Many files: 2006-12-23 20:17:15 +01:00
sql_string.cc Fixed compiler warnings. 2007-03-22 20:32:07 +02:00
sql_string.h Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-22 14:04:40 +02:00