Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
875a7d59
Commit
875a7d59
authored
Jul 06, 2005
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge lgrimmer@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/space/my/mysql-4.1
parents
ddca379b
b6d3eec4
Changes
35
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
183 additions
and
43 deletions
+183
-43
client/Makefile.am
client/Makefile.am
+2
-2
cmd-line-utils/libedit/Makefile.am
cmd-line-utils/libedit/Makefile.am
+2
-1
cmd-line-utils/readline/Makefile.am
cmd-line-utils/readline/Makefile.am
+2
-1
dbug/Makefile.am
dbug/Makefile.am
+2
-1
extra/Makefile.am
extra/Makefile.am
+2
-1
heap/Makefile.am
heap/Makefile.am
+2
-1
isam/Makefile.am
isam/Makefile.am
+2
-1
libmysql/Makefile.am
libmysql/Makefile.am
+2
-1
libmysql_r/Makefile.am
libmysql_r/Makefile.am
+3
-2
libmysqld/Makefile.am
libmysqld/Makefile.am
+2
-1
libmysqld/examples/Makefile.am
libmysqld/examples/Makefile.am
+2
-1
merge/Makefile.am
merge/Makefile.am
+2
-1
myisam/Makefile.am
myisam/Makefile.am
+2
-1
myisammrg/Makefile.am
myisammrg/Makefile.am
+2
-1
mysql-test/Makefile.am
mysql-test/Makefile.am
+1
-1
mysql-test/r/grant.result
mysql-test/r/grant.result
+5
-0
mysql-test/r/lowercase_table2.result
mysql-test/r/lowercase_table2.result
+1
-1
mysql-test/r/query_cache.result
mysql-test/r/query_cache.result
+0
-1
mysql-test/r/rpl_innodb.result
mysql-test/r/rpl_innodb.result
+37
-0
mysql-test/std_data/loaddata_pair.dat
mysql-test/std_data/loaddata_pair.dat
+2
-0
mysql-test/t/grant.test
mysql-test/t/grant.test
+9
-0
mysql-test/t/lowercase_table2.test
mysql-test/t/lowercase_table2.test
+1
-1
mysql-test/t/rpl_innodb.test
mysql-test/t/rpl_innodb.test
+46
-0
mysys/Makefile.am
mysys/Makefile.am
+2
-1
netware/Makefile.am
netware/Makefile.am
+1
-1
regex/Makefile.am
regex/Makefile.am
+2
-1
scripts/mysql_config.sh
scripts/mysql_config.sh
+13
-5
sql/Makefile.am
sql/Makefile.am
+2
-2
sql/log_event.cc
sql/log_event.cc
+15
-0
sql/sql_acl.cc
sql/sql_acl.cc
+2
-1
sql/sql_table.cc
sql/sql_table.cc
+4
-6
strings/Makefile.am
strings/Makefile.am
+2
-1
tests/Makefile.am
tests/Makefile.am
+2
-1
tools/Makefile.am
tools/Makefile.am
+5
-3
vio/Makefile.am
vio/Makefile.am
+2
-1
No files found.
client/Makefile.am
View file @
875a7d59
...
...
@@ -17,8 +17,8 @@
# This file is public domain and comes with NO WARRANTY of any kind
#AUTOMAKE_OPTIONS = nostdinc
INCLUDES
=
-I
$(top_
srcdir)
/include
-I
$(top_srcdir)
/regex
\
$(openssl_includes)
INCLUDES
=
-I
$(top_
builddir)
/include
-I
$(top_srcdir)
/include
\
-I
$(top_srcdir)
/regex
$(openssl_includes)
LIBS
=
@CLIENT_LIBS@
LDADD
=
@CLIENT_EXTRA_LDFLAGS@
\
$(top_builddir)
/libmysql/libmysqlclient.la
...
...
cmd-line-utils/libedit/Makefile.am
View file @
875a7d59
...
...
@@ -5,7 +5,8 @@
ASRC
=
vi.c emacs.c common.c
AHDR
=
vi.h emacs.h common.h
INCLUDES
=
-I
$(top_srcdir)
/include
-I
$(srcdir)
/../..
-I
..
INCLUDES
=
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
\
-I
$(srcdir)
/../..
-I
..
noinst_LIBRARIES
=
libedit.a
...
...
cmd-line-utils/readline/Makefile.am
View file @
875a7d59
...
...
@@ -3,7 +3,8 @@
# Copyright (C) 1994,1996,1997 Free Software Foundation, Inc.
# Last -I$(top_srcdir) needed for RedHat!
INCLUDES
=
-I
$(top_srcdir)
/include
-I
$(top_srcdir)
INCLUDES
=
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
\
-I
$(top_srcdir)
noinst_LIBRARIES
=
libreadline.a
...
...
dbug/Makefile.am
View file @
875a7d59
...
...
@@ -15,7 +15,8 @@
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
LDADD
=
libdbug.a ../strings/libmystrings.a
pkglib_LIBRARIES
=
libdbug.a
noinst_HEADERS
=
dbug_long.h
...
...
extra/Makefile.am
View file @
875a7d59
...
...
@@ -14,7 +14,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
\
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
\
@ndbcluster_includes@
-I
$(top_srcdir)
/sql
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a
\
../dbug/libdbug.a ../strings/libmystrings.a
...
...
heap/Makefile.am
View file @
875a7d59
...
...
@@ -14,7 +14,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
LDADD
=
libheap.a ../mysys/libmysys.a ../dbug/libdbug.a
\
../strings/libmystrings.a
pkglib_LIBRARIES
=
libheap.a
...
...
isam/Makefile.am
View file @
875a7d59
...
...
@@ -14,7 +14,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ libnisam.a ../mysys/libmysys.a
\
../dbug/libdbug.a ../strings/libmystrings.a
pkglib_LIBRARIES
=
libnisam.a
...
...
libmysql/Makefile.am
View file @
875a7d59
...
...
@@ -23,7 +23,8 @@
target
=
libmysqlclient.la
target_defs
=
-DUNDEF_THREADS_HACK
-DDONT_USE_RAID
@LIB_EXTRA_CCFLAGS@
LIBS
=
@CLIENT_LIBS@
INCLUDES
=
-I
$(top_srcdir)
/include
$(openssl_includes)
@ZLIB_INCLUDES@
INCLUDES
=
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
\
$(openssl_includes)
@ZLIB_INCLUDES@
include
$(srcdir)/Makefile.shared
...
...
libmysql_r/Makefile.am
View file @
875a7d59
...
...
@@ -24,8 +24,9 @@ target = libmysqlclient_r.la
target_defs
=
-DDONT_USE_RAID
-DMYSQL_CLIENT
@LIB_EXTRA_CCFLAGS@
LIBS
=
@LIBS@ @ZLIB_LIBS@ @openssl_libs@
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_srcdir)
/include
$(openssl_includes)
@ZLIB_INCLUDES@
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
\
$(openssl_includes)
@ZLIB_INCLUDES@
## automake barfs if you don't use $(srcdir) or $(top_srcdir) in include
include
$(top_srcdir)/libmysql/Makefile.shared
...
...
libmysqld/Makefile.am
View file @
875a7d59
...
...
@@ -25,7 +25,8 @@ DEFS = -DEMBEDDED_LIBRARY -DMYSQL_SERVER \
-DDEFAULT_MYSQL_HOME
=
"
\"
$(MYSQLBASEdir)
\"
"
\
-DDATADIR
=
"
\"
$(MYSQLDATAdir)
\"
"
\
-DSHAREDIR
=
"
\"
$(MYSQLSHAREdir)
\"
"
INCLUDES
=
@MT_INCLUDES@ @bdb_includes@
-I
$(top_srcdir)
/include
\
INCLUDES
=
@MT_INCLUDES@ @bdb_includes@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
\
-I
$(top_srcdir)
/sql
-I
$(top_srcdir)
/sql/examples
-I
$(top_srcdir)
/regex
\
$(openssl_includes)
@ZLIB_INCLUDES@
...
...
libmysqld/examples/Makefile.am
View file @
875a7d59
...
...
@@ -30,7 +30,8 @@ link_sources:
done
;
DEFS
=
-DEMBEDDED_LIBRARY
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
-I
$(srcdir)
\
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
-I
$(srcdir)
\
-I
$(top_srcdir)
-I
$(top_srcdir)
/client
-I
$(top_srcdir)
/regex
\
$(openssl_includes)
LIBS
=
@LIBS@ @WRAPLIBS@ @CLIENT_LIBS@
...
...
merge/Makefile.am
View file @
875a7d59
...
...
@@ -14,7 +14,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
pkglib_LIBRARIES
=
libmerge.a
noinst_HEADERS
=
mrg_def.h
libmerge_a_SOURCES
=
mrg_open.c mrg_extra.c mrg_info.c mrg_locking.c
\
...
...
myisam/Makefile.am
View file @
875a7d59
...
...
@@ -17,7 +17,8 @@
EXTRA_DIST
=
mi_test_all.sh mi_test_all.res
pkgdata_DATA
=
mi_test_all mi_test_all.res
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ libmyisam.a
\
$(top_builddir)
/mysys/libmysys.a
\
$(top_builddir)
/dbug/libdbug.a
\
...
...
myisammrg/Makefile.am
View file @
875a7d59
...
...
@@ -14,7 +14,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
pkglib_LIBRARIES
=
libmyisammrg.a
noinst_HEADERS
=
myrg_def.h
libmyisammrg_a_SOURCES
=
myrg_open.c myrg_extra.c myrg_info.c myrg_locking.c
\
...
...
mysql-test/Makefile.am
View file @
875a7d59
...
...
@@ -39,7 +39,7 @@ test_DATA = std_data/client-key.pem std_data/client-cert.pem std_data/cacert.pem
std_data/server-cert.pem std_data/server-key.pem
CLEANFILES
=
$(test_SCRIPTS)
$(test_DATA)
INCLUDES
=
-I
$(
srcdir)
/../include
-I
..
/include
-I
..
INCLUDES
=
-I
$(
top_builddir)
/include
-I
$(top_srcdir)
/include
-I
..
EXTRA_PROGRAMS
=
mysql_test_run_new
noinst_HEADERS
=
my_manage.h
mysql_test_run_new_SOURCES
=
mysql_test_run_new.c my_manage.c my_create_tables.c
...
...
mysql-test/r/grant.result
View file @
875a7d59
...
...
@@ -435,3 +435,8 @@ ERROR 42000: INSERT,CREATE command denied to user 'mysqltest_1'@'localhost' for
revoke all privileges on mysqltest.t1 from mysqltest_1@localhost;
delete from mysql.user where user=_binary'mysqltest_1';
drop database mysqltest;
use mysql;
insert into tables_priv values ('','test_db','mysqltest_1','test_table','test_grantor',CURRENT_TIMESTAMP,'Select','Select');
flush privileges;
delete from tables_priv where host = '' and user = 'mysqltest_1';
flush privileges;
mysql-test/r/lowercase_table2.result
View file @
875a7d59
DROP TABLE IF EXISTS t1,t2,t3,t2aA,t1Aa;
DROP DATABASE IF EXISTS `TEST_$1`;
DROP DATABASE IF EXISTS `test_$1`;
DROP DATABASE mysqltest_LC2;
DROP DATABASE
IF EXISTS
mysqltest_LC2;
CREATE TABLE T1 (a int);
INSERT INTO T1 VALUES (1);
SHOW TABLES LIKE "T1";
...
...
mysql-test/r/query_cache.result
View file @
875a7d59
...
...
@@ -1057,6 +1057,5 @@ Qcache_inserts 2
show status like "Qcache_hits";
Variable_name Value
Qcache_hits 1
drop table t1;
set GLOBAL query_cache_size=0;
mysql-test/r/rpl_innodb.result
0 → 100644
View file @
875a7d59
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
CREATE TABLE t4 (
id INT(5) unsigned NOT NULL auto_increment,
name varchar(15) NOT NULL default '',
number varchar(35) NOT NULL default 'default',
PRIMARY KEY (id),
UNIQUE KEY unique_rec (name,number)
) ENGINE=InnoDB;
LOAD DATA
INFILE '../../std_data/loaddata_pair.dat'
REPLACE INTO TABLE t4
(name,number);
SELECT * FROM t4;
id name number
1 XXX 12345
2 XXY 12345
SELECT * FROM t4;
id name number
1 XXX 12345
2 XXY 12345
LOAD DATA
INFILE '../../std_data/loaddata_pair.dat'
REPLACE INTO TABLE t4
(name,number);
SELECT * FROM t4;
id name number
3 XXX 12345
4 XXY 12345
SELECT * FROM t4;
id name number
3 XXX 12345
4 XXY 12345
mysql-test/std_data/loaddata_pair.dat
0 → 100644
View file @
875a7d59
XXX 12345
XXY 12345
mysql-test/t/grant.test
View file @
875a7d59
...
...
@@ -392,3 +392,12 @@ revoke all privileges on mysqltest.t1 from mysqltest_1@localhost;
delete from mysql.user where user=_binary'
mysqltest_1
';
drop database mysqltest;
#
# Bug #11330: Entry in tables_priv with host = '' causes crash
#
connection default;
use mysql;
insert into tables_priv values ('','
test_db
','
mysqltest_1
','
test_table
','
test_grantor
',CURRENT_TIMESTAMP,'
Select
','
Select
');
flush privileges;
delete from tables_priv where host = '' and user = '
mysqltest_1
'
;
flush
privileges
;
mysql-test/t/lowercase_table2.test
View file @
875a7d59
...
...
@@ -13,7 +13,7 @@ enable_query_log;
DROP
TABLE
IF
EXISTS
t1
,
t2
,
t3
,
t2aA
,
t1Aa
;
DROP
DATABASE
IF
EXISTS
`TEST_$1`
;
DROP
DATABASE
IF
EXISTS
`test_$1`
;
DROP
DATABASE
mysqltest_LC2
;
DROP
DATABASE
IF
EXISTS
mysqltest_LC2
;
--
enable_warnings
CREATE
TABLE
T1
(
a
int
);
...
...
mysql-test/t/rpl_innodb.test
0 → 100644
View file @
875a7d59
# File for specialities regarding replication from or to InnoDB
# tables.
source
include
/
master
-
slave
.
inc
;
source
include
/
have_innodb
.
inc
;
#
# Bug#11401: Load data infile 'REPLACE INTO' fails on slave.
#
connection
master
;
CREATE
TABLE
t4
(
id
INT
(
5
)
unsigned
NOT
NULL
auto_increment
,
name
varchar
(
15
)
NOT
NULL
default
''
,
number
varchar
(
35
)
NOT
NULL
default
'default'
,
PRIMARY
KEY
(
id
),
UNIQUE
KEY
unique_rec
(
name
,
number
)
)
ENGINE
=
InnoDB
;
--
disable_warnings
LOAD
DATA
INFILE
'../../std_data/loaddata_pair.dat'
REPLACE
INTO
TABLE
t4
(
name
,
number
);
--
enable_warnings
SELECT
*
FROM
t4
;
sync_slave_with_master
;
SELECT
*
FROM
t4
;
connection
master
;
--
disable_warnings
LOAD
DATA
INFILE
'../../std_data/loaddata_pair.dat'
REPLACE
INTO
TABLE
t4
(
name
,
number
);
--
enable_warnings
SELECT
*
FROM
t4
;
sync_slave_with_master
;
SELECT
*
FROM
t4
;
connection
master
;
--
disable_query_log
DROP
TABLE
t4
;
--
enable_query_log
sync_slave_with_master
;
mysys/Makefile.am
View file @
875a7d59
...
...
@@ -18,7 +18,8 @@ MYSQLDATAdir = $(localstatedir)
MYSQLSHAREdir
=
$(pkgdatadir)
MYSQLBASEdir
=
$(prefix)
INCLUDES
=
@MT_INCLUDES@
\
@ZLIB_INCLUDES@
-I
$(top_srcdir)
/include
-I
$(srcdir)
@ZLIB_INCLUDES@
-I
$(top_builddir)
/include
\
-I
$(top_srcdir)
/include
-I
$(srcdir)
pkglib_LIBRARIES
=
libmysys.a
LDADD
=
libmysys.a ../dbug/libdbug.a
\
../strings/libmystrings.a
...
...
netware/Makefile.am
View file @
875a7d59
...
...
@@ -15,7 +15,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
if
HAVE_NETWARE
INCLUDES
=
-I
$(
srcdir)
/../include
-I
..
/include
-I
..
INCLUDES
=
-I
$(
top_builddir)
/include
-I
$(top_srcdir)
/include
-I
..
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a
\
../dbug/libdbug.a ../strings/libmystrings.a
bin_PROGRAMS
=
mysqld_safe mysql_install_db mysql_test_run libmysql
...
...
regex/Makefile.am
View file @
875a7d59
...
...
@@ -15,7 +15,8 @@
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
noinst_LIBRARIES
=
libregex.a
LDADD
=
libregex.a
$(top_builddir)
/strings/libmystrings.a
noinst_HEADERS
=
cclass.h cname.h regex2.h utils.h engine.c regex.h
...
...
scripts/mysql_config.sh
View file @
875a7d59
...
...
@@ -60,11 +60,19 @@ fix_path ()
get_full_path
()
{
case
$1
in
/
*
)
echo
"
$1
"
;;
./
*
)
tmp
=
`
pwd
`
/
$1
;
echo
$tmp
|
sed
-e
's;/\./;/;'
;;
*
)
which
$1
;;
esac
file
=
$1
# if the file is a symlink, try to resolve it
if
[
-h
$file
]
;
then
file
=
`
ls
-l
$file
|
awk
'{ print $NF }'
`
fi
case
$file
in
/
*
)
echo
"
$file
"
;;
*
/
*
)
tmp
=
`
pwd
`
/
$file
;
echo
$tmp
|
sed
-e
's;/\./;/;'
;;
*
)
which
$file
;;
esac
}
me
=
`
get_full_path
$0
`
...
...
sql/Makefile.am
View file @
875a7d59
...
...
@@ -21,8 +21,8 @@ MYSQLSHAREdir = $(pkgdatadir)
MYSQLBASEdir
=
$(prefix)
INCLUDES
=
@MT_INCLUDES@ @ZLIB_INCLUDES@
\
@bdb_includes@ @innodb_includes@ @ndbcluster_includes@
\
-I
$(top_
srcdir)
/include
-I
$(top_srcdir)
/regex
\
-I
$(srcdir)
$(openssl_includes)
-I
$(top_
builddir)
/include
-I
$(top_srcdir)
/include
\
-I
$(
top_srcdir)
/regex
-I
$(
srcdir)
$(openssl_includes)
WRAPLIBS
=
@WRAPLIBS@
SUBDIRS
=
share
libexec_PROGRAMS
=
mysqld
...
...
sql/log_event.cc
View file @
875a7d59
...
...
@@ -1809,11 +1809,25 @@ int Load_log_event::exec_event(NET* net, struct st_relay_log_info* rli,
"` <...>"
,
NullS
)
-
load_data_query
);
thd
->
query
=
load_data_query
;
}
/*
We need to set thd->lex->sql_command and thd->lex->duplicates
since InnoDB tests these variables to decide if this is a LOAD
DATA ... REPLACE INTO ... statement even though mysql_parse()
is not called. This is not needed in 5.0 since there the LOAD
DATA ... statement is replicated using mysql_parse(), which
sets the thd->lex fields correctly.
*/
thd
->
lex
->
sql_command
=
SQLCOM_LOAD
;
if
(
sql_ex
.
opt_flags
&
REPLACE_FLAG
)
{
thd
->
lex
->
duplicates
=
DUP_REPLACE
;
handle_dup
=
DUP_REPLACE
;
}
else
if
(
sql_ex
.
opt_flags
&
IGNORE_FLAG
)
{
ignore
=
1
;
thd
->
lex
->
duplicates
=
DUP_ERROR
;
handle_dup
=
DUP_ERROR
;
}
else
...
...
@@ -1831,6 +1845,7 @@ int Load_log_event::exec_event(NET* net, struct st_relay_log_info* rli,
If reading from net (a 3.23 master), mysql_load() will change this
to IGNORE.
*/
thd
->
lex
->
duplicates
=
DUP_ERROR
;
handle_dup
=
DUP_ERROR
;
}
...
...
sql/sql_acl.cc
View file @
875a7d59
...
...
@@ -1866,7 +1866,8 @@ GRANT_TABLE::GRANT_TABLE(TABLE *form, TABLE *col_privs)
if
(
cols
)
{
int
key_len
;
col_privs
->
field
[
0
]
->
store
(
host
.
hostname
,(
uint
)
strlen
(
host
.
hostname
),
col_privs
->
field
[
0
]
->
store
(
host
.
hostname
,
host
.
hostname
?
(
uint
)
strlen
(
host
.
hostname
)
:
0
,
&
my_charset_latin1
);
col_privs
->
field
[
1
]
->
store
(
db
,(
uint
)
strlen
(
db
),
&
my_charset_latin1
);
col_privs
->
field
[
2
]
->
store
(
user
,(
uint
)
strlen
(
user
),
&
my_charset_latin1
);
...
...
sql/sql_table.cc
View file @
875a7d59
...
...
@@ -1341,14 +1341,12 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
/* Check if table exists */
if
(
create_info
->
options
&
HA_LEX_CREATE_TMP_TABLE
)
{
char
tmp_table_name
[
tmp_file_prefix_length
+
22
+
22
+
22
+
3
];
my_snprintf
(
tmp_table_name
,
sizeof
(
tmp_table_name
),
"%s%lx_%lx_%x"
,
tmp_file_prefix
,
current_pid
,
thd
->
thread_id
,
thd
->
tmp_table
++
);
my_snprintf
(
path
,
sizeof
(
path
),
"%s%s%lx_%lx_%x%s"
,
mysql_tmpdir
,
tmp_file_prefix
,
current_pid
,
thd
->
thread_id
,
thd
->
tmp_table
++
,
reg_ext
);
if
(
lower_case_table_names
)
my_casedn_str
(
files_charset_info
,
tmp_table_name
);
my_casedn_str
(
files_charset_info
,
path
);
create_info
->
table_options
|=
HA_CREATE_DELAY_KEY_WRITE
;
build_table_path
(
path
,
sizeof
(
path
),
db
,
tmp_table_name
,
reg_ext
);
}
else
build_table_path
(
path
,
sizeof
(
path
),
db
,
alias
,
reg_ext
);
...
...
strings/Makefile.am
View file @
875a7d59
...
...
@@ -16,7 +16,8 @@
# This file is public domain and comes with NO WARRANTY of any kind
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
INCLUDES
=
@MT_INCLUDES@
\
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
pkglib_LIBRARIES
=
libmystrings.a
# Exact one of ASSEMBLER_X
...
...
tests/Makefile.am
View file @
875a7d59
...
...
@@ -32,7 +32,8 @@ noinst_PROGRAMS = insert_test select_test thread_test
#
# C Test for 4.1 protocol
#
INCLUDES
=
-I
$(top_srcdir)
/include
$(openssl_includes)
INCLUDES
=
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
\
$(openssl_includes)
LIBS
=
@CLIENT_LIBS@
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../libmysql/libmysqlclient.la
mysql_client_test_LDADD
=
$(LDADD)
$(CXXLDFLAGS)
...
...
tools/Makefile.am
View file @
875a7d59
...
...
@@ -15,9 +15,11 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Process this file with automake to create Makefile.in
INCLUDES
=
@MT_INCLUDES@
-I
$(top_srcdir)
/include
$(openssl_includes)
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ @openssl_libs@
\
$(top_builddir)
/libmysql_r/libmysqlclient_r.la @ZLIB_LIBS@
INCLUDES
=
@MT_INCLUDES@
-I
$(top_builddir)
/include
\
-I
$(top_srcdir)
/include
$(openssl_includes)
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ @openssl_libs@
\
$(top_builddir)
/libmysql_r/libmysqlclient_r.la
\
@ZLIB_LIBS@
bin_PROGRAMS
=
mysqlmanager
mysqlmanager_SOURCES
=
mysqlmanager.c
mysqlmanager_DEPENDENCIES
=
$(LIBRARIES)
$(pkglib_LTLIBRARIES)
...
...
vio/Makefile.am
View file @
875a7d59
...
...
@@ -14,7 +14,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
INCLUDES
=
-I
$(top_srcdir)
/include
$(openssl_includes)
INCLUDES
=
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/include
\
$(openssl_includes)
LDADD
=
@CLIENT_EXTRA_LDFLAGS@
$(openssl_libs)
pkglib_LIBRARIES
=
libvio.a
noinst_PROGRAMS
=
test-ssl test-sslserver test-sslclient
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment