mariadb/client
kaa@polly.(none) 9cd5f49c53 Fix for:
bug #26215: mysql command line client should not strip comments
              from SQL statements
and
  bug #11230: Keeping comments when storing stored procedures

With the introduction of multiline comments support in the command line
client (mysql) in MySQL 4.1, it became impossible to preserve
client-side comments within single SQL statements or stored routines.
This feature was useful for monitoring tools and maintenance.

The patch adds a new option to the command line client
('--enable-comments', '-c') which allows to preserve SQL comments and
send them to the server for single SQL statements, and to keep comments
in the code for stored procedures / functions / triggers.

The patch is a modification of the contributed patch from bug #11230
with the following changes:
- code style changes to conform to the coding guidelines
- changed is_prefix() to my_strnncoll() to detect the DELIMITER
command, since the first one is case-sensitive and not charset-aware
- renamed t/comments-51.* to t/mysql_comments.*
- removed tests for comments in triggers since 5.0 does not have SHOW
CREATE TRIGGER (those tests will be added back in 5.1).

The test cases are only for bug #11230. No automated test case for bug
#26215 is possible due to the test suite deficiencies (though the cases
from the bug report were tested manually).
2007-11-02 13:40:34 +03:00
..
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
client_priv.h Fixed bug #31077. 2007-10-01 20:35:51 +05: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 Fix for: 2007-11-02 13:40:34 +03:00
mysql_upgrade.c Bug#29805 mysql_upgrade test fail if ~/.my.cnf contain a password 2007-08-27 11:31:49 +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 mysqldump.c, mysqldump.test, mysqldump.result: 2007-10-03 02:50:38 +05: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 Streamline "do_close_connection" and "do_send_quit" 2007-08-28 16:47:05 +02: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