mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
d4d29edb83
There are two main idea of this fix: - introduce a common function for server and client to split user value (<user name>@<host name>) into user name and host name parts; - dump DEFINER clause in correct format in mysqldump. BitKeeper/etc/ignore: added client/my_user.c libmysqld/my_user.c sql/my_user.c client/Makefile.am: Use my_user.c in linking of mysqldump executable. client/mysqldump.c: Fix for BUG#15110(mysqldump --triggers: does not include DEFINER clause) include/Makefile.am: Add my_user.c include/mysql_com.h: Introduce a constant for max user length. libmysqld/Makefile.am: Add my_user.c mysql-test/r/mysqldump.result: Update result file. sql-common/Makefile.am: Add my_user.c sql/Makefile.am: Add my_user.c sql/sp.cc: Use constant for max user length. sql/sp_head.cc: Use common function to parse user value. sql/sql_acl.cc: Use constant for max user length. sql/sql_parse.cc: Use constant for max user length. sql/sql_show.cc: Use constant for max user length. sql/sql_trigger.cc: Use constant for max user length. include/my_user.h: A header file for parse_user(). sql-common/my_user.c: A new file for parse_user() implementation.
56 lines
2.1 KiB
Makefile
56 lines
2.1 KiB
Makefile
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
|
#
|
|
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Library General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2 of the License, or (at your option) any later version.
|
|
#
|
|
# This library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Library General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Library General Public
|
|
# License along with this library; if not, write to the Free
|
|
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
# MA 02111-1307, USA
|
|
|
|
BUILT_SOURCES = mysql_version.h m_ctype.h my_config.h
|
|
pkginclude_HEADERS = my_dbug.h m_string.h my_sys.h my_list.h my_xml.h \
|
|
mysql.h mysql_com.h mysql_embed.h \
|
|
my_semaphore.h my_pthread.h my_no_pthread.h raid.h \
|
|
errmsg.h my_global.h my_net.h my_alloc.h \
|
|
my_getopt.h sslopt-longopts.h my_dir.h typelib.h \
|
|
sslopt-vars.h sslopt-case.h sql_common.h keycache.h \
|
|
mysql_time.h $(BUILT_SOURCES)
|
|
noinst_HEADERS = config-win.h config-os2.h config-netware.h \
|
|
heap.h my_bitmap.h\
|
|
myisam.h myisampack.h myisammrg.h ft_global.h\
|
|
mysys_err.h my_base.h help_start.h help_end.h \
|
|
my_nosys.h my_alarm.h queues.h rijndael.h sha1.h \
|
|
my_aes.h my_tree.h hash.h thr_alarm.h \
|
|
thr_lock.h t_ctype.h violite.h md5.h base64.h \
|
|
mysql_version.h.in my_handler.h my_time.h decimal.h \
|
|
my_user.h
|
|
|
|
# mysql_version.h are generated
|
|
CLEANFILES = mysql_version.h my_config.h readline openssl
|
|
|
|
# Some include files that may be moved and patched by configure
|
|
DISTCLEANFILES = sched.h $(CLEANFILES)
|
|
|
|
link_sources:
|
|
-$(RM) -fr readline
|
|
@readline_h_ln_cmd@
|
|
@yassl_h_ln_cmd@
|
|
|
|
my_config.h: ../config.h
|
|
$(CP) ../config.h my_config.h
|
|
|
|
# These files should not be included in distributions since they are
|
|
# generated by configure from the .h.in files
|
|
dist-hook:
|
|
$(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h
|
|
|
|
# Don't update the files from bitkeeper
|
|
%::SCCS/s.%
|