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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8f75d091
Commit
8f75d091
authored
Oct 24, 2006
by
tsmith@maint1.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maint
into maint1.mysql.com:/data/localhome/tsmith/bk/51
parents
aeced431
2ed61076
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
293 additions
and
135 deletions
+293
-135
client/mysqldump.c
client/mysqldump.c
+2
-2
client/mysqltest.c
client/mysqltest.c
+4
-4
configure.in
configure.in
+12
-0
extra/yassl/testsuite/test.hpp
extra/yassl/testsuite/test.hpp
+4
-1
include/mysql.h
include/mysql.h
+0
-6
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+0
-1
mysql-test/include/analyze_failure_sync_with_master.test
mysql-test/include/analyze_failure_sync_with_master.test
+15
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+199
-79
mysql-test/r/mysqldump-max.result
mysql-test/r/mysqldump-max.result
+1
-18
mysql-test/r/rpl_trigger.result
mysql-test/r/rpl_trigger.result
+0
-2
mysql-test/r/type_newdecimal.result
mysql-test/r/type_newdecimal.result
+0
-2
mysql-test/t/mysqldump-max.test
mysql-test/t/mysqldump-max.test
+3
-8
mysql-test/t/rpl_ndb_auto_inc.test
mysql-test/t/rpl_ndb_auto_inc.test
+1
-0
mysql-test/t/rpl_trigger.test
mysql-test/t/rpl_trigger.test
+1
-1
mysql-test/t/type_newdecimal.test
mysql-test/t/type_newdecimal.test
+2
-2
netware/BUILD/compile-netware-END
netware/BUILD/compile-netware-END
+7
-2
netware/BUILD/mwenv
netware/BUILD/mwenv
+8
-2
netware/BUILD/mwldnlm
netware/BUILD/mwldnlm
+7
-0
tests/mysql_client_test.c
tests/mysql_client_test.c
+18
-5
vio/viossl.c
vio/viossl.c
+5
-0
vio/viosslfactories.c
vio/viosslfactories.c
+4
-0
No files found.
client/mysqldump.c
View file @
8f75d091
...
...
@@ -1208,7 +1208,7 @@ static void print_xml_tag(FILE * xml_file, const char* sbeg, const char* send,
const
char
*
first_attribute_name
,
...)
{
va_list
arg_list
;
char
*
attribute_name
,
*
attribute_value
;
c
onst
c
har
*
attribute_name
,
*
attribute_value
;
fputs
(
sbeg
,
xml_file
);
fputc
(
'<'
,
xml_file
);
...
...
@@ -1458,7 +1458,7 @@ static uint dump_events_for_db(char *db)
static
void
print_blob_as_hex
(
FILE
*
output_file
,
const
char
*
str
,
ulong
len
)
{
/* sakaik got the idea to to provide blob's in hex notation. */
char
*
ptr
=
str
,
*
end
=
ptr
+
len
;
c
onst
c
har
*
ptr
=
str
,
*
end
=
ptr
+
len
;
for
(;
ptr
<
end
;
ptr
++
)
fprintf
(
output_file
,
"%02X"
,
*
((
uchar
*
)
ptr
));
check_io
(
output_file
);
...
...
client/mysqltest.c
View file @
8f75d091
...
...
@@ -398,13 +398,13 @@ TYPELIB command_typelib= {array_elements(command_names),"",
DYNAMIC_STRING
ds_res
,
ds_progress
,
ds_warning_messages
;
void
die
(
const
char
*
fmt
,
...)
/* ATTRIBUTE_FORMAT(printf, 1, 2) */
;
ATTRIBUTE_FORMAT
(
printf
,
1
,
2
)
;
void
abort_not_supported_test
(
const
char
*
fmt
,
...)
/* ATTRIBUTE_FORMAT(printf, 1, 2) */
;
ATTRIBUTE_FORMAT
(
printf
,
1
,
2
)
;
void
verbose_msg
(
const
char
*
fmt
,
...)
/* ATTRIBUTE_FORMAT(printf, 1, 2) */
;
ATTRIBUTE_FORMAT
(
printf
,
1
,
2
)
;
void
warning_msg
(
const
char
*
fmt
,
...)
/* ATTRIBUTE_FORMAT(printf, 1, 2) */
;
ATTRIBUTE_FORMAT
(
printf
,
1
,
2
)
;
VAR
*
var_from_env
(
const
char
*
,
const
char
*
);
VAR
*
var_init
(
VAR
*
v
,
const
char
*
name
,
int
name_len
,
const
char
*
val
,
...
...
configure.in
View file @
8f75d091
...
...
@@ -1058,6 +1058,18 @@ EOF
extra/Makefile.in
)
cat
>
$filesed
<<
EOF
s,
\(
extra/comp_err
\)\$
(EXEEXT),
\1
.linux,
EOF
;;
libmysql/Makefile.in
)
cat
>
$filesed
<<
EOF
s,libyassl.la,.libs/libyassl.a,
s,libtaocrypt.la,.libs/libtaocrypt.a,
EOF
;;
libmysql_r/Makefile.in
)
cat
>
$filesed
<<
EOF
s,libyassl.la,.libs/libyassl.a,
s,libtaocrypt.la,.libs/libtaocrypt.a,
EOF
;;
client/Makefile.in
)
...
...
extra/yassl/testsuite/test.hpp
View file @
8f75d091
...
...
@@ -27,9 +27,12 @@
#endif
/* _WIN32 */
#if !defined(_SOCKLEN_T) &&
(defined(_WIN32) || defined(__NETWARE__)
)
#if !defined(_SOCKLEN_T) &&
defined(_WIN32
)
typedef
int
socklen_t
;
#endif
#if !defined(_SOCKLEN_T) && defined(__NETWARE__)
typedef
size_t
socklen_t
;
#endif
// Check type of third arg to accept
...
...
include/mysql.h
View file @
8f75d091
...
...
@@ -293,12 +293,6 @@ typedef struct st_mysql
/* needed for embedded server - no net buffer to store the 'info' */
char
*
info_buffer
;
#endif
/*
In embedded server it points to the statement that is processed
in the current query. We store some results directly in statement
fields then.
*/
struct
st_mysql_stmt
*
current_stmt
;
}
MYSQL
;
typedef
struct
st_mysql_res
{
...
...
libmysqld/lib_sql.cc
View file @
8f75d091
...
...
@@ -100,7 +100,6 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
mysql
->
affected_rows
=
~
(
my_ulonglong
)
0
;
mysql
->
field_count
=
0
;
net
->
last_errno
=
0
;
mysql
->
current_stmt
=
stmt
;
thd
->
store_globals
();
// Fix if more than one connect
/*
...
...
mysql-test/include/analyze_failure_sync_with_master.test
0 → 100644
View file @
8f75d091
# Connect to both master and slave
connect
(
master
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT
,);
connect
(
slave
,
127.0
.
0.1
,
root
,,
test
,
$SLAVE_MYPORT
,);
vertical_results
;
echo
==
MASTER
===========================================================
;
connection
master
;
show
master
status
;
show
slave
status
;
echo
==
SLAVE
===========================================================
;
connection
slave
;
show
master
status
;
show
slave
status
;
mysql-test/mysql-test-run.pl
View file @
8f75d091
This diff is collapsed.
Click to expand it.
mysql-test/r/mysqldump-max.result
View file @
8f75d091
drop table if exists t1;
Warnings:
Note 1051 Unknown table 't1'
drop table if exists t2;
Warnings:
Note 1051 Unknown table 't2'
drop table if exists t3;
Warnings:
Note 1051 Unknown table 't3'
drop table if exists t4;
Warnings:
Note 1051 Unknown table 't4'
drop table if exists t5;
Warnings:
Note 1051 Unknown table 't5'
drop table if exists t6;
Warnings:
Note 1051 Unknown table 't6'
drop table if exists t1, t2, t3, t4, t5, t6;
create table t1 (id int(8), name varchar(32));
create table t2 (id int(8), name varchar(32)) ENGINE="MyISAM";
create table t3 (id int(8), name varchar(32)) ENGINE="MEMORY";
...
...
mysql-test/r/rpl_trigger.result
View file @
8f75d091
...
...
@@ -74,8 +74,6 @@ get_lock("bug12480",2)
1
create table t1 (a datetime,b datetime, c datetime);
drop function if exists bug12480;
Warnings:
Note 1305 FUNCTION bug12480 does not exist
create function bug12480() returns datetime
begin
set @a=get_lock("bug12480",2);
...
...
mysql-test/r/type_newdecimal.result
View file @
8f75d091
...
...
@@ -978,8 +978,6 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
drop procedure if exists wg2;
Warnings:
Note 1305 PROCEDURE wg2 does not exist
create procedure wg2()
begin
declare v int default 1;
...
...
mysql-test/t/mysqldump-max.test
View file @
8f75d091
...
...
@@ -3,14 +3,9 @@
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_archive
.
inc
--
disable
-
warnings
drop
table
if
exists
t1
;
drop
table
if
exists
t2
;
drop
table
if
exists
t3
;
drop
table
if
exists
t4
;
drop
table
if
exists
t5
;
drop
table
if
exists
t6
;
--
enable
-
warnings
--
disable_warnings
drop
table
if
exists
t1
,
t2
,
t3
,
t4
,
t5
,
t6
;
--
enable_warnings
create
table
t1
(
id
int
(
8
),
name
varchar
(
32
));
create
table
t2
(
id
int
(
8
),
name
varchar
(
32
))
ENGINE
=
"MyISAM"
;
...
...
mysql-test/t/rpl_ndb_auto_inc.test
View file @
8f75d091
...
...
@@ -6,6 +6,7 @@
# Date: 2006-02-10
# Change: Augmented test to use with cluster
#####################################
--
source
include
/
have_ndb
.
inc
--
source
include
/
master
-
slave
.
inc
--
source
include
/
have_binlog_format_mixed_or_row
.
inc
...
...
mysql-test/t/rpl_trigger.test
View file @
8f75d091
...
...
@@ -70,7 +70,7 @@ select get_lock("bug12480",2);
connection
default
;
create
table
t1
(
a
datetime
,
b
datetime
,
c
datetime
);
--
ignor
e_warnings
--
disabl
e_warnings
drop
function
if
exists
bug12480
;
--
enable_warnings
...
...
mysql-test/t/type_newdecimal.test
View file @
8f75d091
...
...
@@ -1000,9 +1000,9 @@ drop table t1;
#
# Bug 12938 (arithmetic loop's zero)
#
--
disable
-
warnings
--
disable
_
warnings
drop
procedure
if
exists
wg2
;
--
enable
-
warnings
--
enable
_
warnings
delimiter
//;
create
procedure
wg2
()
begin
...
...
netware/BUILD/compile-netware-END
View file @
8f75d091
...
...
@@ -18,8 +18,13 @@ rm -rf Makefile.in.bk
# Setup Metrowerks environment
.
$path
/mwenv
# Run autotools(use BUILD/autorun.sh)
.
BUILD/autorun.sh
# Temporary hack to allow building from source dist
if
[
!
"
$USER
"
=
pushbuild
]
then
# Run autotools(use BUILD/autorun.sh)
echo
"Running autotools again(BUILD/autorun.sh)"
.
BUILD/autorun.sh
fi
# configure
./configure
$base_configs
$extra_configs
...
...
netware/BUILD/mwenv
View file @
8f75d091
...
...
@@ -27,8 +27,8 @@ WINE_BUILD_DIR="$base/$WINE_BUILD_DIR"
echo
"WINE_BUILD_DIR:
$WINE_BUILD_DIR
"
# Look for libc, MySQL 5.1.x uses libc-2006 by default
libcdir
=
"
$MYDEV
/libc-2006"
if
test
!
-d
$libcdir
libc
_
dir
=
"
$MYDEV
/libc-2006"
if
[
!
-d
`
winepath
$libc_dir
`
]
then
# The libcdir didn't exist, set default
libc_dir
=
"
$MYDEV
/libc"
...
...
@@ -65,5 +65,11 @@ then
export
TERM
=
linux
fi
# Temporary hack to allow building from source dist
if
[
"
$USER
"
=
pushbuild
]
then
export
ARFLAGS
=
$AR_FLAGS
fi
# Print all env. variables
export
netware/BUILD/mwldnlm
View file @
8f75d091
...
...
@@ -3,6 +3,13 @@
# stop on errors
set
-e
# If libtool passes "x" as the first argument to this script
# it's an indication that libtool is trying to unpack .la's
# so they can be added to a new library
# This step does not work on Netware and we avoid it by
# replacing the .la library with the path to the .a library
# in Makefile.in
args
=
"
$*
"
# NOTE: Option 'pipefail' is not standard sh
...
...
tests/mysql_client_test.c
View file @
8f75d091
...
...
@@ -121,8 +121,9 @@ static void client_disconnect();
void
die
(
const
char
*
file
,
int
line
,
const
char
*
expr
)
{
fflush
(
stdout
);
fprintf
(
stderr
,
"%s:%d: check failed: '%s'
\n
"
,
file
,
line
,
expr
);
fflush
(
NULL
);
fflush
(
stderr
);
abort
();
}
...
...
@@ -7496,10 +7497,22 @@ static void test_explain_bug()
MYSQL_TYPE_STRING
:
MYSQL_TYPE_VAR_STRING
,
0
,
0
,
""
,
3
,
0
);
verify_prepare_field
(
result
,
4
,
"Default"
,
"COLUMN_DEFAULT"
,
mysql_get_server_version
(
mysql
)
<=
50000
?
MYSQL_TYPE_STRING
:
MYSQL_TYPE_VAR_STRING
,
0
,
0
,
""
,
64
,
0
);
if
(
mysql_get_server_version
(
mysql
)
>=
50027
)
{
/* The patch for bug#23037 changes column type of DEAULT to blob */
verify_prepare_field
(
result
,
4
,
"Default"
,
"COLUMN_DEFAULT"
,
MYSQL_TYPE_BLOB
,
0
,
0
,
""
,
0
,
0
);
}
else
{
verify_prepare_field
(
result
,
4
,
"Default"
,
"COLUMN_DEFAULT"
,
mysql_get_server_version
(
mysql
)
>=
50027
?
MYSQL_TYPE_BLOB
:
mysql_get_server_version
(
mysql
)
<=
50000
?
MYSQL_TYPE_STRING
:
MYSQL_TYPE_VAR_STRING
,
0
,
0
,
""
,
mysql_get_server_version
(
mysql
)
>=
50027
?
0
:
64
,
0
);
}
verify_prepare_field
(
result
,
5
,
"Extra"
,
"EXTRA"
,
mysql_get_server_version
(
mysql
)
<=
50000
?
...
...
vio/viossl.c
View file @
8f75d091
...
...
@@ -26,6 +26,10 @@
#ifdef HAVE_OPENSSL
#ifdef __NETWARE__
/* yaSSL already uses BSD sockets */
#ifndef HAVE_YASSL
/*
The default OpenSSL implementation on NetWare uses WinSock.
This code allows us to use the BSD sockets.
...
...
@@ -47,6 +51,7 @@ static int SSL_set_fd_bsd(SSL *s, int fd)
#define SSL_set_fd(A, B) SSL_set_fd_bsd((A), (B))
#endif
/* HAVE_YASSL */
#endif
/* __NETWARE__ */
...
...
vio/viosslfactories.c
View file @
8f75d091
...
...
@@ -180,11 +180,15 @@ void netware_ssl_cleanup()
/* free memory from SSL_library_init() */
EVP_cleanup
();
/* OpenSSL NetWare port specific functions */
#ifndef HAVE_YASSL
/* free global X509 method */
X509_STORE_method_cleanup
();
/* free the thread_hash error table */
ERR_free_state_table
();
#endif
}
...
...
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