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
793d9bcc
Commit
793d9bcc
authored
Jan 24, 2005
by
ingo@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mydev/mysql-4.1
into mysql.com:/home/mydev/mysql-4.1-4100
parents
47c40091
878e99e6
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
54 additions
and
28 deletions
+54
-28
.bzrignore
.bzrignore
+2
-0
include/my_global.h
include/my_global.h
+1
-1
libmysql/libmysql.c
libmysql/libmysql.c
+1
-1
libmysqld/examples/Makefile.am
libmysqld/examples/Makefile.am
+9
-8
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+32
-10
mysql-test/t/client_test.test
mysql-test/t/client_test.test
+0
-4
mysql-test/t/mysql_client_test.test
mysql-test/t/mysql_client_test.test
+3
-0
scripts/make_binary_distribution.sh
scripts/make_binary_distribution.sh
+3
-1
tests/Makefile.am
tests/Makefile.am
+3
-3
tests/mysql_client_test.c
tests/mysql_client_test.c
+0
-0
No files found.
.bzrignore
View file @
793d9bcc
...
@@ -1002,3 +1002,5 @@ vio/test-ssl
...
@@ -1002,3 +1002,5 @@ vio/test-ssl
vio/test-sslclient
vio/test-sslclient
vio/test-sslserver
vio/test-sslserver
vio/viotest-ssl
vio/viotest-ssl
tests/mysql_client_test
tests/mysql_client_test
include/my_global.h
View file @
793d9bcc
...
@@ -1072,7 +1072,7 @@ do { doubleget_union _tmp; \
...
@@ -1072,7 +1072,7 @@ do { doubleget_union _tmp; \
#define float4store(V,M) memcpy_fixed((byte*) V,(byte*) (&M),sizeof(float))
#define float4store(V,M) memcpy_fixed((byte*) V,(byte*) (&M),sizeof(float))
#if defined(__FLOAT_WORD_ORDER) && (__FLOAT_WORD_ORDER == __BIG_ENDIAN)
#if defined(__FLOAT_WORD_ORDER) && (__FLOAT_WORD_ORDER == __BIG_ENDIAN)
#define doublestore(T,V) do { *(
T)=
((byte *) &V)[4];\
#define doublestore(T,V) do { *(
((char*)T)+0)=(char)
((byte *) &V)[4];\
*(((char*)T)+1)=(char) ((byte *) &V)[5];\
*(((char*)T)+1)=(char) ((byte *) &V)[5];\
*(((char*)T)+2)=(char) ((byte *) &V)[6];\
*(((char*)T)+2)=(char) ((byte *) &V)[6];\
*(((char*)T)+3)=(char) ((byte *) &V)[7];\
*(((char*)T)+3)=(char) ((byte *) &V)[7];\
...
...
libmysql/libmysql.c
View file @
793d9bcc
...
@@ -2978,7 +2978,7 @@ static my_bool int_is_null_false= 0;
...
@@ -2978,7 +2978,7 @@ static my_bool int_is_null_false= 0;
values and mysql_stmt_execute() the statement.
values and mysql_stmt_execute() the statement.
See also: mysql_stmt_send_long_data() for sending long text/blob
See also: mysql_stmt_send_long_data() for sending long text/blob
data in pieces, examples in tests/client_test.c.
data in pieces, examples in tests/
mysql_
client_test.c.
Next steps you might want to make:
Next steps you might want to make:
- execute statement with mysql_stmt_execute(),
- execute statement with mysql_stmt_execute(),
- reset statement using mysql_stmt_reset() or reprepare it with
- reset statement using mysql_stmt_reset() or reprepare it with
...
...
libmysqld/examples/Makefile.am
View file @
793d9bcc
noinst_PROGRAMS
=
mysqltest mysql client_test
noinst_PROGRAMS
=
mysql
client_sources
=
$(mysqltest_SOURCES)
$(mysql_SOURCES)
bin_PROGRAMS
=
mysqltest_embedded mysql_client_test_embedded
tests_sources
=
$(client_test_SOURCES)
client_sources
=
$(mysqltest_embedded_SOURCES)
$(mysql_SOURCES)
tests_sources
=
$(mysql_client_test_embedded_SOURCES)
link_sources
:
link_sources
:
for
f
in
$(client_sources)
;
do
\
for
f
in
$(client_sources)
;
do
\
...
@@ -19,16 +20,16 @@ INCLUDES = @MT_INCLUDES@ -I$(top_srcdir)/include -I$(srcdir) \
...
@@ -19,16 +20,16 @@ INCLUDES = @MT_INCLUDES@ -I$(top_srcdir)/include -I$(srcdir) \
LIBS
=
@LIBS@ @WRAPLIBS@ @CLIENT_LIBS@
LIBS
=
@LIBS@ @WRAPLIBS@ @CLIENT_LIBS@
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @innodb_system_libs@ @LIBDL@
$(CXXLDFLAGS)
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @innodb_system_libs@ @LIBDL@
$(CXXLDFLAGS)
mysqltest_LINK
=
$(CXXLINK)
mysqltest_
embedded_
LINK
=
$(CXXLINK)
mysqltest_SOURCES
=
mysqltest.c
mysqltest_
embedded_
SOURCES
=
mysqltest.c
mysqltest_LDADD
=
$(LDADD)
$(top_builddir)
/regex/libregex.a
mysqltest_
embedded_
LDADD
=
$(LDADD)
$(top_builddir)
/regex/libregex.a
mysql_SOURCES
=
mysql.cc readline.cc completion_hash.cc
\
mysql_SOURCES
=
mysql.cc readline.cc completion_hash.cc
\
my_readline.h sql_string.h completion_hash.h
my_readline.h sql_string.h completion_hash.h
mysql_LDADD
=
@readline_link@ @TERMCAP_LIB@
$(LDADD)
mysql_LDADD
=
@readline_link@ @TERMCAP_LIB@
$(LDADD)
client_test
_LINK
=
$(CXXLINK)
mysql_client_test_embedded
_LINK
=
$(CXXLINK)
client_test_SOURCES
=
client_test.c
mysql_client_test_embedded_SOURCES
=
mysql_
client_test.c
clean
:
clean
:
rm
-f
$(client_sources)
rm
-f
$(client_sources)
...
...
mysql-test/mysql-test-run.sh
View file @
793d9bcc
...
@@ -493,13 +493,13 @@ DASH72=`$ECHO '-------------------------------------------------------'|$CUT -c
...
@@ -493,13 +493,13 @@ DASH72=`$ECHO '-------------------------------------------------------'|$CUT -c
# on binary, use what is installed
# on binary, use what is installed
if
[
x
$SOURCE_DIST
=
x1
]
;
then
if
[
x
$SOURCE_DIST
=
x1
]
;
then
if
[
"x
$USE_EMBEDDED_SERVER
"
=
"x1"
]
;
then
if
[
"x
$USE_EMBEDDED_SERVER
"
=
"x1"
]
;
then
if
[
-f
"
$BASEDIR
/libmysqld/examples/mysqltest"
]
;
then
if
[
-f
"
$BASEDIR
/libmysqld/examples/mysqltest
_embedded
"
]
;
then
MYSQL_TEST
=
"
$VALGRIND
$BASEDIR
/libmysqld/examples/mysqltest"
MYSQL_TEST
=
"
$VALGRIND
$BASEDIR
/libmysqld/examples/mysqltest
_embedded
"
else
else
echo
"Fatal error: Cannot find embedded server 'mysqltest'"
1>&2
echo
"Fatal error: Cannot find embedded server 'mysqltest
_embedded
'"
1>&2
exit
1
exit
1
fi
fi
TESTS_BINDIR
=
"
$BASEDIR
/libmysqld/examples
"
MYSQL_CLIENT_TEST
=
"
$BASEDIR
/libmysqld/examples/mysql_client_test_embedded
"
else
else
MYSQLD
=
"
$VALGRIND
$BASEDIR
/sql/mysqld"
MYSQLD
=
"
$VALGRIND
$BASEDIR
/sql/mysqld"
if
[
-f
"
$BASEDIR
/client/.libs/lt-mysqltest"
]
;
then
if
[
-f
"
$BASEDIR
/client/.libs/lt-mysqltest"
]
;
then
...
@@ -509,7 +509,7 @@ if [ x$SOURCE_DIST = x1 ] ; then
...
@@ -509,7 +509,7 @@ if [ x$SOURCE_DIST = x1 ] ; then
else
else
MYSQL_TEST
=
"
$BASEDIR
/client/mysqltest"
MYSQL_TEST
=
"
$BASEDIR
/client/mysqltest"
fi
fi
TESTS_BINDIR
=
"
$BASEDIR
/tests
"
MYSQL_CLIENT_TEST
=
"
$BASEDIR
/tests/mysql_client_test
"
fi
fi
if
[
-f
"
$BASEDIR
/client/.libs/mysqldump"
]
;
then
if
[
-f
"
$BASEDIR
/client/.libs/mysqldump"
]
;
then
MYSQL_DUMP
=
"
$BASEDIR
/client/.libs/mysqldump"
MYSQL_DUMP
=
"
$BASEDIR
/client/.libs/mysqldump"
...
@@ -539,6 +539,14 @@ if [ x$SOURCE_DIST = x1 ] ; then
...
@@ -539,6 +539,14 @@ if [ x$SOURCE_DIST = x1 ] ; then
NDB_TOOLS_DIR
=
"
$BASEDIR
/ndb/tools"
NDB_TOOLS_DIR
=
"
$BASEDIR
/ndb/tools"
NDB_MGM
=
"
$BASEDIR
/ndb/src/mgmclient/ndb_mgm"
NDB_MGM
=
"
$BASEDIR
/ndb/src/mgmclient/ndb_mgm"
else
else
# We have a binary installation. Note that this can be both from
# unpacking a MySQL AB binary distribution (created using
# "scripts/make_binary_distribution", and from a "make install".
# Unfortunately the structure differs a bit, for a "make install"
# currently all binaries are in "bin", for a MySQL AB packaging
# some are in "tests".
if
test
-x
"
$BASEDIR
/libexec/mysqld"
if
test
-x
"
$BASEDIR
/libexec/mysqld"
then
then
MYSQLD
=
"
$VALGRIND
$BASEDIR
/libexec/mysqld"
MYSQLD
=
"
$VALGRIND
$BASEDIR
/libexec/mysqld"
...
@@ -546,8 +554,6 @@ else
...
@@ -546,8 +554,6 @@ else
MYSQLD
=
"
$VALGRIND
$BASEDIR
/bin/mysqld"
MYSQLD
=
"
$VALGRIND
$BASEDIR
/bin/mysqld"
fi
fi
CLIENT_BINDIR
=
"
$BASEDIR
/bin"
CLIENT_BINDIR
=
"
$BASEDIR
/bin"
TESTS_BINDIR
=
"
$BASEDIR
/tests"
MYSQL_TEST
=
"
$CLIENT_BINDIR
/mysqltest"
MYSQL_DUMP
=
"
$CLIENT_BINDIR
/mysqldump"
MYSQL_DUMP
=
"
$CLIENT_BINDIR
/mysqldump"
MYSQL_BINLOG
=
"
$CLIENT_BINDIR
/mysqlbinlog"
MYSQL_BINLOG
=
"
$CLIENT_BINDIR
/mysqlbinlog"
MYSQLADMIN
=
"
$CLIENT_BINDIR
/mysqladmin"
MYSQLADMIN
=
"
$CLIENT_BINDIR
/mysqladmin"
...
@@ -568,6 +574,22 @@ else
...
@@ -568,6 +574,22 @@ else
LANGUAGE
=
"
$BASEDIR
/share/english/"
LANGUAGE
=
"
$BASEDIR
/share/english/"
CHARSETSDIR
=
"
$BASEDIR
/share/charsets"
CHARSETSDIR
=
"
$BASEDIR
/share/charsets"
fi
fi
if
[
"x
$USE_EMBEDDED_SERVER
"
=
"x1"
]
;
then
if
[
-f
"
$CLIENT_BINDIR
/mysqltest_embedded"
]
;
then
MYSQL_TEST
=
"
$VALGRIND
$CLIENT_BINDIR
/mysqltest_embedded"
else
echo
"Fatal error: Cannot find embedded server 'mysqltest_embedded'"
1>&2
exit
1
fi
if
[
-d
"
$BASEDIR
/tests/mysql_client_test_embedded"
]
;
then
MYSQL_CLIENT_TEST
=
"
$TESTS_BINDIR
/mysql_client_test_embedded"
else
MYSQL_CLIENT_TEST
=
"
$CLIENT_BINDIR
/mysql_client_test_embedded"
fi
else
MYSQL_TEST
=
"
$CLIENT_BINDIR
/mysqltest"
MYSQL_CLIENT_TEST
=
"
$CLIENT_BINDIR
/mysql_client_test"
fi
fi
fi
if
[
-z
"
$MASTER_MYSQLD
"
]
if
[
-z
"
$MASTER_MYSQLD
"
]
...
@@ -601,13 +623,13 @@ then
...
@@ -601,13 +623,13 @@ then
EXTRA_SLAVE_MYSQLD_OPT
=
"
$EXTRA_SLAVE_MYSQLD_OPT
--user=root"
EXTRA_SLAVE_MYSQLD_OPT
=
"
$EXTRA_SLAVE_MYSQLD_OPT
--user=root"
fi
fi
MYSQL_CLIENT_TEST
=
"
$MYSQL_CLIENT_TEST
--no-defaults --testcase --user=root --socket=
$MASTER_MYSOCK
--port=
$MYSQL_TCP_PORT
--silent"
MYSQL_DUMP
=
"
$MYSQL_DUMP
--no-defaults -uroot --socket=
$MASTER_MYSOCK
--password=
$DBPASSWD
$EXTRA_MYSQLDUMP_OPT
"
MYSQL_DUMP
=
"
$MYSQL_DUMP
--no-defaults -uroot --socket=
$MASTER_MYSOCK
--password=
$DBPASSWD
$EXTRA_MYSQLDUMP_OPT
"
MYSQL_BINLOG
=
"
$MYSQL_BINLOG
--no-defaults --local-load=
$MYSQL_TMP_DIR
$EXTRA_MYSQLBINLOG_OPT
"
MYSQL_BINLOG
=
"
$MYSQL_BINLOG
--no-defaults --local-load=
$MYSQL_TMP_DIR
$EXTRA_MYSQLBINLOG_OPT
"
MYSQL_FIX_SYSTEM_TABLES
=
"
$MYSQL_FIX_SYSTEM_TABLES
--no-defaults --host=localhost --port=
$MASTER_MYPORT
--socket=
$MASTER_MYSOCK
--user=root --password=
$DBPASSWD
--basedir=
$BASEDIR
--bindir=
$CLIENT_BINDIR
--verbose"
MYSQL_FIX_SYSTEM_TABLES
=
"
$MYSQL_FIX_SYSTEM_TABLES
--no-defaults --host=localhost --port=
$MASTER_MYPORT
--socket=
$MASTER_MYSOCK
--user=root --password=
$DBPASSWD
--basedir=
$BASEDIR
--bindir=
$CLIENT_BINDIR
--verbose"
MYSQL
=
"
$MYSQL
--host=localhost --port=
$MASTER_MYPORT
--socket=
$MASTER_MYSOCK
--user=root --password=
$DBPASSWD
"
MYSQL
=
"
$MYSQL
--host=localhost --port=
$MASTER_MYPORT
--socket=
$MASTER_MYSOCK
--user=root --password=
$DBPASSWD
"
export
MYSQL MYSQL_DUMP MYSQL_BINLOG MYSQL_FIX_SYSTEM_TABLES
export
MYSQL MYSQL_DUMP MYSQL_BINLOG MYSQL_FIX_SYSTEM_TABLES
export
CLIENT_BINDIR
TESTS_BINDIR
CHARSETSDIR
export
CLIENT_BINDIR
MYSQL_CLIENT_TEST
CHARSETSDIR
export
NDB_TOOLS_DIR
export
NDB_TOOLS_DIR
export
NDB_MGM
export
NDB_MGM
...
...
mysql-test/t/client_test.test
deleted
100644 → 0
View file @
47c40091
# Skip when testing the embedded server
--
source
include
/
not_embedded
.
inc
--
disable_result_log
--
exec
$TESTS_BINDIR
/
client_test
--
no
-
defaults
--
testcase
--
user
=
root
--
socket
=
$MASTER_MYSOCK
--
port
=
$MYSQL_TCP_PORT
--
silent
mysql-test/t/mysql_client_test.test
0 → 100644
View file @
793d9bcc
# We run with different binaries for normal and --embedded-server
--
disable_result_log
--
exec
$MYSQL_CLIENT_TEST
scripts/make_binary_distribution.sh
View file @
793d9bcc
...
@@ -127,6 +127,8 @@ else
...
@@ -127,6 +127,8 @@ else
client/.libs/mysqltest client/.libs/mysqlcheck
\
client/.libs/mysqltest client/.libs/mysqlcheck
\
client/.libs/mysqlbinlog client/.libs/mysqlmanagerc
\
client/.libs/mysqlbinlog client/.libs/mysqlmanagerc
\
client/.libs/mysqlmanager-pwgen tools/.libs/mysqlmanager
\
client/.libs/mysqlmanager-pwgen tools/.libs/mysqlmanager
\
tests/.libs/mysql_client_test libmysqld/examples/mysql_client_test_embedded
\
libmysqld/examples/mysqltest_embedded
\
"
;
"
;
fi
fi
...
@@ -187,7 +189,7 @@ fi
...
@@ -187,7 +189,7 @@ fi
if
[
$BASE_SYSTEM
!=
"netware"
]
;
then
if
[
$BASE_SYSTEM
!=
"netware"
]
;
then
if
[
-d
tests
]
;
then
if
[
-d
tests
]
;
then
$CP
tests/
client_test tests/
*
.res tests/
*
.tst tests/
*
.pl
$BASE
/tests
$CP
tests/
*
.res tests/
*
.tst tests/
*
.pl
$BASE
/tests
fi
fi
if
[
-d
man
]
;
then
if
[
-d
man
]
;
then
$CP
man/
*
.1
$BASE
/man/man1
$CP
man/
*
.1
$BASE
/man/man1
...
...
tests/Makefile.am
View file @
793d9bcc
...
@@ -26,7 +26,7 @@ EXTRA_DIST = auto_increment.res auto_increment.tst \
...
@@ -26,7 +26,7 @@ EXTRA_DIST = auto_increment.res auto_increment.tst \
pmail.pl mail_to_db.pl table_types.pl
\
pmail.pl mail_to_db.pl table_types.pl
\
udf_test udf_test.res myisam-big-rows.tst
udf_test udf_test.res myisam-big-rows.tst
bin_PROGRAMS
=
client_test
bin_PROGRAMS
=
mysql_
client_test
noinst_PROGRAMS
=
insert_test select_test thread_test
noinst_PROGRAMS
=
insert_test select_test thread_test
#
#
...
@@ -35,8 +35,8 @@ noinst_PROGRAMS = insert_test select_test thread_test
...
@@ -35,8 +35,8 @@ noinst_PROGRAMS = insert_test select_test thread_test
INCLUDES
=
-I
$(top_srcdir)
/include
$(openssl_includes)
INCLUDES
=
-I
$(top_srcdir)
/include
$(openssl_includes)
LIBS
=
@CLIENT_LIBS@
LIBS
=
@CLIENT_LIBS@
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../libmysql/libmysqlclient.la
LDADD
=
@CLIENT_EXTRA_LDFLAGS@ ../libmysql/libmysqlclient.la
client_test_LDADD
=
$(LDADD)
$(CXXLDFLAGS)
mysql_
client_test_LDADD
=
$(LDADD)
$(CXXLDFLAGS)
client_test_SOURCES
=
client_test.c
mysql_client_test_SOURCES
=
mysql_
client_test.c
insert_test_DEPENDENCIES
=
$(LIBRARIES)
$(pkglib_LTLIBRARIES)
insert_test_DEPENDENCIES
=
$(LIBRARIES)
$(pkglib_LTLIBRARIES)
select_test_DEPENDENCIES
=
$(LIBRARIES)
$(pkglib_LTLIBRARIES)
select_test_DEPENDENCIES
=
$(LIBRARIES)
$(pkglib_LTLIBRARIES)
...
...
tests/client_test.c
→
tests/
mysql_
client_test.c
View file @
793d9bcc
File moved
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