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
2f8ca649
Commit
2f8ca649
authored
Jun 14, 2010
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
50cc6c9d
1cd47ac7
Changes
46
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
254 additions
and
377 deletions
+254
-377
mysql-test/include/have_example_plugin.inc
mysql-test/include/have_example_plugin.inc
+2
-2
mysql-test/include/have_simple_parser.inc
mysql-test/include/have_simple_parser.inc
+1
-1
mysql-test/include/have_udf.inc
mysql-test/include/have_udf.inc
+1
-1
mysql-test/include/rpl_udf.inc
mysql-test/include/rpl_udf.inc
+6
-6
mysql-test/lib/My/File/Path.pm
mysql-test/lib/My/File/Path.pm
+1
-1
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+4
-49
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+102
-160
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+3
-3
mysql-test/r/innodb_ignore_builtin.result
mysql-test/r/innodb_ignore_builtin.result
+1
-4
mysql-test/suite/oqgraph/t/suite.opt
mysql-test/suite/oqgraph/t/suite.opt
+1
-2
mysql-test/suite/pbxt/t/udf-master.opt
mysql-test/suite/pbxt/t/udf-master.opt
+0
-1
mysql-test/suite/pbxt/t/udf.test
mysql-test/suite/pbxt/t/udf.test
+38
-38
mysql-test/suite/rpl/t/rpl_plugin_load-master.opt
mysql-test/suite/rpl/t/rpl_plugin_load-master.opt
+0
-1
mysql-test/suite/rpl/t/rpl_plugin_load-slave.opt
mysql-test/suite/rpl/t/rpl_plugin_load-slave.opt
+0
-1
mysql-test/suite/rpl/t/rpl_table_options-master.opt
mysql-test/suite/rpl/t/rpl_table_options-master.opt
+0
-1
mysql-test/suite/rpl/t/rpl_table_options.test
mysql-test/suite/rpl/t/rpl_table_options.test
+1
-1
mysql-test/suite/rpl/t/rpl_udf-master.opt
mysql-test/suite/rpl/t/rpl_udf-master.opt
+0
-1
mysql-test/suite/rpl/t/rpl_udf-slave.opt
mysql-test/suite/rpl/t/rpl_udf-slave.opt
+0
-1
mysql-test/t/bug46261-master.opt
mysql-test/t/bug46261-master.opt
+1
-1
mysql-test/t/bug46261.test
mysql-test/t/bug46261.test
+1
-1
mysql-test/t/fulltext_plugin-master.opt
mysql-test/t/fulltext_plugin-master.opt
+0
-1
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+1
-0
mysql-test/t/innodb_ignore_builtin.test
mysql-test/t/innodb_ignore_builtin.test
+1
-3
mysql-test/t/mysqld_option_err.test
mysql-test/t/mysqld_option_err.test
+1
-1
mysql-test/t/partition_example-master.opt
mysql-test/t/partition_example-master.opt
+0
-1
mysql-test/t/partition_example.test
mysql-test/t/partition_example.test
+1
-1
mysql-test/t/plugin-master.opt
mysql-test/t/plugin-master.opt
+0
-1
mysql-test/t/plugin.test
mysql-test/t/plugin.test
+5
-5
mysql-test/t/plugin_load-master.opt
mysql-test/t/plugin_load-master.opt
+1
-2
mysql-test/t/plugin_not_embedded-master.opt
mysql-test/t/plugin_not_embedded-master.opt
+0
-1
mysql-test/t/plugin_not_embedded.test
mysql-test/t/plugin_not_embedded.test
+1
-1
mysql-test/t/udf-master.opt
mysql-test/t/udf-master.opt
+0
-1
mysql-test/t/udf.test
mysql-test/t/udf.test
+36
-36
mysql-test/t/udf_query_cache-master.opt
mysql-test/t/udf_query_cache-master.opt
+0
-1
mysql-test/t/udf_query_cache.test
mysql-test/t/udf_query_cache.test
+2
-2
storage/federated/Makefile.am
storage/federated/Makefile.am
+1
-3
storage/federated/plug.in
storage/federated/plug.in
+1
-1
storage/federatedx/Makefile.am
storage/federatedx/Makefile.am
+2
-2
storage/federatedx/ha_federatedx.cc
storage/federatedx/ha_federatedx.cc
+2
-2
storage/federatedx/plug.in
storage/federatedx/plug.in
+4
-4
storage/innodb_plugin/plug.in
storage/innodb_plugin/plug.in
+1
-1
storage/xtradb/CMakeLists.txt
storage/xtradb/CMakeLists.txt
+7
-8
storage/xtradb/Makefile.am
storage/xtradb/Makefile.am
+11
-11
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+2
-2
storage/xtradb/include/rem0rec.ic
storage/xtradb/include/rem0rec.ic
+4
-4
storage/xtradb/plug.in
storage/xtradb/plug.in
+7
-6
No files found.
mysql-test/include/have_example_plugin.inc
View file @
2f8ca649
...
...
@@ -5,9 +5,9 @@
--
source
include
/
have_dynamic_loading
.
inc
#
# Check if the variable
EXAMPLE_PLUGIN
is set
# Check if the variable
HA_EXAMPLE_SO
is set
#
--
require
r
/
have_example_plugin
.
require
disable_query_log
;
eval
select
LENGTH
(
'$
EXAMPLE_PLUGIN
'
)
>
0
as
'have_example_plugin'
;
eval
select
LENGTH
(
'$
HA_EXAMPLE_SO
'
)
>
0
as
'have_example_plugin'
;
enable_query_log
;
mysql-test/include/have_simple_parser.inc
View file @
2f8ca649
...
...
@@ -9,5 +9,5 @@
#
--
require
r
/
have_simple_parser
.
require
disable_query_log
;
eval
select
LENGTH
(
'$
SIMPLE_PARSER
'
)
>
0
as
'have_simple_parser'
;
eval
select
LENGTH
(
'$
MYPLUGLIB_SO
'
)
>
0
as
'have_simple_parser'
;
enable_query_log
;
mysql-test/include/have_udf.inc
View file @
2f8ca649
...
...
@@ -9,5 +9,5 @@
#
--
require
r
/
have_udf_example
.
require
disable_query_log
;
eval
select
LENGTH
(
'$UDF_EXAMPLE_
LIB
'
)
>
0
as
'have_udf_example_lib'
;
eval
select
LENGTH
(
'$UDF_EXAMPLE_
SO
'
)
>
0
as
'have_udf_example_lib'
;
enable_query_log
;
mysql-test/include/rpl_udf.inc
View file @
2f8ca649
...
...
@@ -27,13 +27,13 @@ drop table if exists t1;
--
echo
"*** Test 1) Test UDFs via loadable libraries ***
--echo "
Running
on
the
master
"
--enable_info
--replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval CREATE FUNCTION myfunc_double RETURNS REAL SONAME "
$UDF_EXAMPLE_
LIB
";
--replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "
$UDF_EXAMPLE_
LIB
";
--replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
--replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval CREATE FUNCTION myfunc_double RETURNS REAL SONAME "
$UDF_EXAMPLE_
SO
";
--replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "
$UDF_EXAMPLE_
SO
";
--replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
--error ER_CANT_FIND_DL_ENTRY
eval CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "
$UDF_EXAMPLE_
LIB
";
eval CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "
$UDF_EXAMPLE_
SO
";
--replace_column 3 UDF_LIB
SELECT * FROM mysql.func ORDER BY name;
--disable_info
...
...
mysql-test/lib/My/File/Path.pm
View file @
2f8ca649
...
...
@@ -18,7 +18,7 @@ use strict;
use
Exporter
;
use
base
"
Exporter
";
our
@EXPORT
=
qw /
rmtree
mkpath
copytree
/
;
our
@EXPORT
=
qw /
rmtree
mkpath
copytree
/
;
use
File::
Find
;
use
File::
Copy
;
...
...
mysql-test/lib/mtr_cases.pm
View file @
2f8ca649
...
...
@@ -55,7 +55,7 @@ sub collect_option {
}
use
File::
Basename
;
use
File::Spec::
Functions
qw /
splitdir
/
;
use
File::Spec::
Functions
qw /
splitdir
/;
use
IO::
File
();
use
My::
Config
;
use
My::
Platform
;
...
...
@@ -68,22 +68,9 @@ require "mtr_misc.pl";
my
$do_test_reg
;
my
$skip_test_reg
;
# Related to adding InnoDB plugin combinations
my
$lib_innodb_plugin
;
# If "Quick collect", set to 1 once a test to run has been found.
my
$some_test_found
;
sub
find_innodb_plugin
{
$lib_innodb_plugin
=
my_find_file
(
$::basedir
,
["
storage/innodb_plugin
",
"
storage/innodb_plugin/.libs
",
"
lib/mysql/plugin
",
"
lib/mariadb/plugin
",
"
lib/plugin
"],
["
ha_innodb_plugin.dll
",
"
ha_innodb_plugin.so
",
"
ha_innodb_plugin.sl
"],
NOT_REQUIRED
);
}
sub
init_pattern
{
my
(
$from
,
$what
)
=
@_
;
return
undef
unless
defined
$from
;
...
...
@@ -116,8 +103,6 @@ sub collect_test_cases ($$$) {
$do_test_reg
=
init_pattern
(
$do_test
,
"
--do-test
");
$skip_test_reg
=
init_pattern
(
$skip_test
,
"
--skip-test
");
&
find_innodb_plugin
;
# If not reordering, we also shouldn't group by suites, unless
# no test cases were named.
# This also effects some logic in the loop following this.
...
...
@@ -966,36 +951,6 @@ sub collect_one_test_case {
return
$tinfo
;
}
}
elsif
(
$tinfo
->
{'
innodb_plugin_test
'}
)
{
# This is a test that needs the innodb plugin
if
(
!&
find_innodb_plugin
)
{
# innodb plugin is not supported, skip it
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
comment
'}
=
"
No innodb plugin support
";
return
$tinfo
;
}
my
$sep
=
(
IS_WINDOWS
)
?
'
;
'
:
'
:
';
my
$plugin_filename
=
basename
(
$lib_innodb_plugin
);
my
$plugin_list
=
"
innodb=
$plugin_filename$sep
"
.
"
innodb_trx=
$plugin_filename$sep
"
.
"
innodb_locks=
$plugin_filename$sep
"
.
"
innodb_lock_waits=
$plugin_filename$sep
"
.
"
innodb_cmp=
$plugin_filename$sep
"
.
"
innodb_cmp_reset=
$plugin_filename$sep
"
.
"
innodb_cmpmem=
$plugin_filename$sep
"
.
"
innodb_cmpmem_reset=
$plugin_filename
";
foreach
my
$k
('
master_opt
',
'
slave_opt
')
{
push
(
@
{
$tinfo
->
{
$k
}},
'
--ignore-builtin-innodb
');
push
(
@
{
$tinfo
->
{
$k
}},
'
--plugin-dir=
'
.
dirname
(
$lib_innodb_plugin
));
push
(
@
{
$tinfo
->
{
$k
}},
"
--plugin-load=
$plugin_list
");
}
}
else
{
push
(
@
{
$tinfo
->
{'
master_opt
'}},
"
--loose-skip-innodb
");
...
...
@@ -1113,7 +1068,7 @@ sub collect_one_test_case {
if
(
$tinfo
->
{'
example_plugin_test
'}
)
{
if
(
!
$ENV
{'
EXAMPLE_PLUGIN
'}
)
if
(
!
$ENV
{'
HA_EXAMPLE_SO
'}
)
{
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
comment
'}
=
"
Test requires the 'example' plugin
";
...
...
@@ -1123,7 +1078,7 @@ sub collect_one_test_case {
if
(
$tinfo
->
{'
oqgraph_test
'}
)
{
if
(
!
$ENV
{'
OQGRAPH_PLUGIN
'}
)
if
(
!
$ENV
{'
GRAPH_ENGINE_SO
'}
)
{
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
comment
'}
=
"
Test requires the OQGraph storage engine
";
...
...
@@ -1175,7 +1130,7 @@ my @tags=
["
include/have_innodb.inc
",
"
innodb_test
",
1
],
["
include/have_pbxt.inc
",
"
pbxt_test
",
1
],
["
include/have_innodb_plugin.inc
",
"
innodb_
plugin_
test
",
1
],
["
include/have_innodb_plugin.inc
",
"
innodb_test
",
1
],
["
include/big_test.inc
",
"
big_test
",
1
],
["
include/have_debug.inc
",
"
need_debug
",
1
],
["
include/have_ndb.inc
",
"
ndb_test
",
1
],
...
...
mysql-test/mysql-test-run.pl
View file @
2f8ca649
This diff is collapsed.
Click to expand it.
mysql-test/r/information_schema.result
View file @
2f8ca649
...
...
@@ -871,6 +871,9 @@ COLUMNS TABLE_NAME select
COLUMN_PRIVILEGES TABLE_NAME select
FILES TABLE_NAME select
INDEX_STATISTICS TABLE_NAME select
INNODB_BUFFER_POOL_PAGES_INDEX table_name select
INNODB_INDEX_STATS table_name select
INNODB_TABLE_STATS table_name select
KEY_COLUMN_USAGE TABLE_NAME select
PARTITIONS TABLE_NAME select
REFERENTIAL_CONSTRAINTS TABLE_NAME select
...
...
@@ -880,9 +883,6 @@ TABLE_CONSTRAINTS TABLE_NAME select
TABLE_PRIVILEGES TABLE_NAME select
TABLE_STATISTICS TABLE_NAME select
VIEWS TABLE_NAME select
INNODB_BUFFER_POOL_PAGES_INDEX table_name select
INNODB_TABLE_STATS table_name select
INNODB_INDEX_STATS table_name select
delete from mysql.user where user='mysqltest_4';
delete from mysql.db where user='mysqltest_4';
flush privileges;
...
...
mysql-test/r/innodb_ignore_builtin.result
View file @
2f8ca649
...
...
@@ -2,8 +2,5 @@ show variables like 'ignore_builtin_innodb';
Variable_name Value
ignore_builtin_innodb ON
select PLUGIN_NAME from information_schema.plugins
where PLUGIN_NAME = "InnoDb";
where PLUGIN_NAME = "InnoDb"
and PLUGIN_LIBRARY IS NULL
;
PLUGIN_NAME
select ENGINE from information_schema.engines
where ENGINE = "InnoDB";
ENGINE
mysql-test/suite/oqgraph/t/suite.opt
View file @
2f8ca649
$OQGRAPH_PLUGIN_OPT
$OQGRAPH_PLUGIN_LOAD
--plugin-load=$GRAPH_ENGINE_SO
mysql-test/suite/pbxt/t/udf-master.opt
deleted
100644 → 0
View file @
50cc6c9d
$UDF_EXAMPLE_LIB_OPT
mysql-test/suite/pbxt/t/udf.test
View file @
2f8ca649
...
...
@@ -14,26 +14,26 @@ drop table if exists t1;
# Create the example functions from udf_example
#
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_double
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_double
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
--
error
ER_CANT_FIND_DL_ENTRY
eval
CREATE
FUNCTION
myfunc_nonexist
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_int
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
sequence
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
lookup
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_nonexist
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_int
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
sequence
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
lookup
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
reverse_lookup
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
AGGREGATE
FUNCTION
avgcost
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
error
ER_CANT_INITIALIZE_UDF
select
myfunc_double
();
...
...
@@ -207,14 +207,14 @@ CREATE FUNCTION metaphon(a int) RETURNS int
return
0
;
# this currently passes, and eclipse the stored function
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
DROP
FUNCTION
metaphon
;
DROP
FUNCTION
metaphon
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
error
ER_UDF_EXISTS
CREATE
FUNCTION
metaphon
(
a
int
)
RETURNS
int
...
...
@@ -245,8 +245,8 @@ DROP FUNCTION avgcost;
# the UDF
#
select
*
from
mysql
.
func
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
is_const
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
is_const
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
select
IS_const
(
3
);
...
...
@@ -260,8 +260,8 @@ select is_const(3);
#
# Bug#18761: constant expression as UDF parameters not passed in as constant
#
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
is_const
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
is_const
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
select
is_const
(
3
)
as
const
,
...
...
@@ -300,14 +300,14 @@ drop function if exists is_const;
# Bug #25382: Passing NULL to an UDF called from stored procedures
# crashes server
#
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_double
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_double
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_int
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_int
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
SO
"
;
delimiter
//;
create
function
f1
(
p1
varchar
(
255
))
...
...
@@ -345,8 +345,8 @@ drop function myfunc_int;
# Bug #28921: Queries containing UDF functions are cached
#
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
create
table
t1
(
a
char
);
set
GLOBAL
query_cache_size
=
1355776
;
...
...
@@ -374,8 +374,8 @@ DROP DATABASE IF EXISTS mysqltest;
CREATE
DATABASE
mysqltest
;
USE
mysqltest
;
DROP
DATABASE
mysqltest
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
DROP
FUNCTION
metaphon
;
USE
test
;
...
...
@@ -403,8 +403,8 @@ insert into const_len_bug values(str_const, result, "");
END
|
DELIMITER
;
|
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
check_const_len
RETURNS
string
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
check_const_len
RETURNS
string
SONAME
"
$UDF_EXAMPLE_
SO
"
;
CALL
check_const_len_sp
(
"foo"
);
...
...
@@ -420,8 +420,8 @@ DROP TABLE const_len_bug;
# Bug #30355: Incorrect ordering of UDF results
#
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
sequence
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
sequence
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
SO
"
;
CREATE
TABLE
t1
(
a
INT
);
CREATE
TABLE
t2
(
a
INT
PRIMARY
KEY
);
INSERT
INTO
t1
VALUES
(
4
),(
3
),(
2
),(
1
);
...
...
mysql-test/suite/rpl/t/rpl_plugin_load-master.opt
deleted
100644 → 0
View file @
50cc6c9d
$EXAMPLE_PLUGIN_OPT
mysql-test/suite/rpl/t/rpl_plugin_load-slave.opt
deleted
100644 → 0
View file @
50cc6c9d
$EXAMPLE_PLUGIN_OPT
mysql-test/suite/rpl/t/rpl_table_options-master.opt
deleted
100644 → 0
View file @
50cc6c9d
$EXAMPLE_PLUGIN_OPT
mysql-test/suite/rpl/t/rpl_table_options.test
View file @
2f8ca649
...
...
@@ -3,7 +3,7 @@
--
source
include
/
master
-
slave
.
inc
--
replace_regex
/
\
.
dll
/.
so
/
eval
install
plugin
example
soname
$HA_EXAMPLE_SO
;
eval
install
plugin
example
soname
'$HA_EXAMPLE_SO'
;
set
storage_engine
=
example
;
sync_slave_with_master
;
...
...
mysql-test/suite/rpl/t/rpl_udf-master.opt
deleted
100644 → 0
View file @
50cc6c9d
$UDF_EXAMPLE_LIB_OPT
mysql-test/suite/rpl/t/rpl_udf-slave.opt
deleted
100644 → 0
View file @
50cc6c9d
$UDF_EXAMPLE_LIB_OPT
mysql-test/t/bug46261-master.opt
View file @
2f8ca649
--skip-grant-tables
$EXAMPLE_PLUGIN_OPT
--skip-grant-tables
mysql-test/t/bug46261.test
View file @
2f8ca649
...
...
@@ -7,7 +7,7 @@
--
replace_regex
/
\
.
dll
/.
so
/
--
error
ER_OPTION_PREVENTS_STATEMENT
eval
INSTALL
PLUGIN
example
SONAME
$HA_EXAMPLE_SO
;
eval
INSTALL
PLUGIN
example
SONAME
'$HA_EXAMPLE_SO'
;
--
replace_regex
/
\
.
dll
/.
so
/
--
error
ER_OPTION_PREVENTS_STATEMENT
...
...
mysql-test/t/fulltext_plugin-master.opt
deleted
100644 → 0
View file @
50cc6c9d
$SIMPLE_PARSER_OPT
mysql-test/t/information_schema.test
View file @
2f8ca649
...
...
@@ -531,6 +531,7 @@ drop table t1;
grant
select
on
test
.*
to
mysqltest_4
@
localhost
;
connect
(
user10261
,
localhost
,
mysqltest_4
,,);
connection
user10261
;
--
sorted_result
SELECT
TABLE_NAME
,
COLUMN_NAME
,
PRIVILEGES
FROM
INFORMATION_SCHEMA
.
COLUMNS
where
COLUMN_NAME
=
'TABLE_NAME'
;
connection
default
;
...
...
mysql-test/t/innodb_ignore_builtin.test
View file @
2f8ca649
...
...
@@ -3,6 +3,4 @@
#
show
variables
like
'ignore_builtin_innodb'
;
select
PLUGIN_NAME
from
information_schema
.
plugins
where
PLUGIN_NAME
=
"InnoDb"
;
select
ENGINE
from
information_schema
.
engines
where
ENGINE
=
"InnoDB"
;
where
PLUGIN_NAME
=
"InnoDb"
and
PLUGIN_LIBRARY
IS
NULL
;
mysql-test/t/mysqld_option_err.test
View file @
2f8ca649
...
...
@@ -44,7 +44,7 @@ mkdir $MYSQLTEST_VARDIR/tmp/mysqld_option_err;
# See also Bug#32034.
--
echo
Test
that
bad
value
for
plugin
enum
option
is
rejected
correctly
.
--
error
7
--
exec
$MYSQLD
--
skip
-
networking
--
datadir
=
$MYSQLTEST_VARDIR
/
tmp
/
mysqld_option_err
--
skip
-
grant
-
tables
$EXAMPLE_PLUGIN_OPT
--
plugin
-
load
=
EXAMPLE
=
ha_example
.
so
--
plugin
-
example
-
enum
-
var
=
noexist
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld_option_err
/
mysqltest
.
log
2
>&
1
--
exec
$MYSQLD
--
skip
-
networking
--
datadir
=
$MYSQLTEST_VARDIR
/
tmp
/
mysqld_option_err
--
skip
-
grant
-
tables
--
plugin
-
dir
=
$MYSQLTEST_VARDIR
/
plugins
--
plugin
-
load
=
example
=
ha_example
.
so
--
plugin
-
example
-
enum
-
var
=
noexist
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld_option_err
/
mysqltest
.
log
2
>&
1
#
# Test that an wrong option with --help --verbose gives an error
...
...
mysql-test/t/partition_example-master.opt
deleted
100644 → 0
View file @
50cc6c9d
$EXAMPLE_PLUGIN_OPT
mysql-test/t/partition_example.test
View file @
2f8ca649
...
...
@@ -3,7 +3,7 @@
--
source
include
/
have_partition
.
inc
--
replace_regex
/
\
.
dll
/.
so
/
eval
install
plugin
example
soname
$HA_EXAMPLE_SO
;
eval
install
plugin
example
soname
'$HA_EXAMPLE_SO'
;
create
table
t1
(
a
int
not
null
)
engine
=
example
...
...
mysql-test/t/plugin-master.opt
deleted
100644 → 0
View file @
50cc6c9d
$EXAMPLE_PLUGIN_OPT
mysql-test/t/plugin.test
View file @
2f8ca649
...
...
@@ -5,15 +5,15 @@ CREATE TABLE t1(a int) ENGINE=EXAMPLE;
DROP
TABLE
t1
;
--
replace_regex
/
\
.
dll
/.
so
/
eval
INSTALL
PLUGIN
example
SONAME
$HA_EXAMPLE_SO
;
eval
INSTALL
PLUGIN
example
SONAME
'$HA_EXAMPLE_SO'
;
--
replace_regex
/
\
.
dll
/.
so
/
--
error
1125
eval
INSTALL
PLUGIN
EXAMPLE
SONAME
$HA_EXAMPLE_SO
;
eval
INSTALL
PLUGIN
EXAMPLE
SONAME
'$HA_EXAMPLE_SO'
;
UNINSTALL
PLUGIN
example
;
--
replace_regex
/
\
.
dll
/.
so
/
eval
INSTALL
PLUGIN
example
SONAME
$HA_EXAMPLE_SO
;
eval
INSTALL
PLUGIN
example
SONAME
'$HA_EXAMPLE_SO'
;
CREATE
TABLE
t1
(
a
int
)
ENGINE
=
EXAMPLE
;
...
...
@@ -41,7 +41,7 @@ UNINSTALL PLUGIN non_exist;
--
echo
# to impossible int val
--
echo
#
--
replace_regex
/
\
.
dll
/.
so
/
eval
INSTALL
PLUGIN
example
SONAME
$HA_EXAMPLE_SO
;
eval
INSTALL
PLUGIN
example
SONAME
'$HA_EXAMPLE_SO'
;
SET
GLOBAL
example_enum_var
=
e1
;
SET
GLOBAL
example_enum_var
=
e2
;
...
...
@@ -56,7 +56,7 @@ UNINSTALL PLUGIN example;
# Bug #32757 hang with sql_mode set when setting some global variables
#
--
replace_regex
/
\
.
dll
/.
so
/
eval
INSTALL
PLUGIN
example
SONAME
$HA_EXAMPLE_SO
;
eval
INSTALL
PLUGIN
example
SONAME
'$HA_EXAMPLE_SO'
;
select
@@
session
.
sql_mode
into
@
old_sql_mode
;
...
...
mysql-test/t/plugin_load-master.opt
View file @
2f8ca649
$EXAMPLE_PLUGIN_OPT
$EXAMPLE_PLUGIN_LOAD
--plugin-load=EXAMPLE=$HA_EXAMPLE_SO
--loose-plugin-example-enum-var=e2
mysql-test/t/plugin_not_embedded-master.opt
deleted
100644 → 0
View file @
50cc6c9d
$EXAMPLE_PLUGIN_OPT
mysql-test/t/plugin_not_embedded.test
View file @
2f8ca649
...
...
@@ -8,7 +8,7 @@
GRANT
INSERT
ON
mysql
.
plugin
TO
bug51770
@
localhost
;
connect
(
con1
,
localhost
,
bug51770
,,);
--
replace_regex
/
\
.
dll
/.
so
/
eval
INSTALL
PLUGIN
example
SONAME
$HA_EXAMPLE_SO
;
eval
INSTALL
PLUGIN
example
SONAME
'$HA_EXAMPLE_SO'
;
--
error
ER_TABLEACCESS_DENIED_ERROR
UNINSTALL
PLUGIN
example
;
connection
default
;
...
...
mysql-test/t/udf-master.opt
deleted
100644 → 0
View file @
50cc6c9d
$UDF_EXAMPLE_LIB_OPT
mysql-test/t/udf.test
View file @
2f8ca649
...
...
@@ -14,26 +14,26 @@ drop table if exists t1;
# Create the example functions from udf_example
#
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_double
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_double
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
--
error
ER_CANT_FIND_DL_ENTRY
eval
CREATE
FUNCTION
myfunc_nonexist
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_int
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
sequence
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
lookup
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_nonexist
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_int
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
sequence
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
lookup
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
reverse_lookup
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
AGGREGATE
FUNCTION
avgcost
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
error
ER_CANT_INITIALIZE_UDF
select
myfunc_double
();
...
...
@@ -210,14 +210,14 @@ CREATE FUNCTION metaphon(a int) RETURNS int
return
0
;
# this currently passes, and eclipse the stored function
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
DROP
FUNCTION
metaphon
;
DROP
FUNCTION
metaphon
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
error
ER_UDF_EXISTS
CREATE
FUNCTION
metaphon
(
a
int
)
RETURNS
int
...
...
@@ -248,8 +248,8 @@ DROP FUNCTION avgcost;
# the UDF
#
select
*
from
mysql
.
func
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
is_const
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
is_const
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
select
IS_const
(
3
);
...
...
@@ -263,8 +263,8 @@ select is_const(3);
#
# Bug#18761: constant expression as UDF parameters not passed in as constant
#
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
is_const
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
is_const
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
select
is_const
(
3
)
as
const
,
...
...
@@ -303,14 +303,14 @@ drop function if exists is_const;
# Bug #25382: Passing NULL to an UDF called from stored procedures
# crashes server
#
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_double
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_double
RETURNS
REAL
SONAME
"
$UDF_EXAMPLE_
SO
"
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_int
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
myfunc_int
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
SO
"
;
delimiter
//;
create
function
f1
(
p1
varchar
(
255
))
...
...
@@ -354,8 +354,8 @@ DROP DATABASE IF EXISTS mysqltest;
CREATE
DATABASE
mysqltest
;
USE
mysqltest
;
DROP
DATABASE
mysqltest
;
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
DROP
FUNCTION
metaphon
;
USE
test
;
...
...
@@ -383,8 +383,8 @@ insert into const_len_bug values(str_const, result, "");
END
|
DELIMITER
;
|
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
check_const_len
RETURNS
string
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
check_const_len
RETURNS
string
SONAME
"
$UDF_EXAMPLE_
SO
"
;
CALL
check_const_len_sp
(
"foo"
);
...
...
@@ -400,8 +400,8 @@ DROP TABLE const_len_bug;
# Bug #30355: Incorrect ordering of UDF results
#
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
sequence
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
sequence
RETURNS
INTEGER
SONAME
"
$UDF_EXAMPLE_
SO
"
;
CREATE
TABLE
t1
(
a
INT
);
CREATE
TABLE
t2
(
a
INT
PRIMARY
KEY
);
INSERT
INTO
t1
VALUES
(
4
),(
3
),(
2
),(
1
);
...
...
mysql-test/t/udf_query_cache-master.opt
deleted
100644 → 0
View file @
50cc6c9d
$UDF_EXAMPLE_LIB_OPT
mysql-test/t/udf_query_cache.test
View file @
2f8ca649
...
...
@@ -14,8 +14,8 @@ drop table if exists t1;
# Bug #28921: Queries containing UDF functions are cached
#
--
replace_result
$UDF_EXAMPLE_
LIB
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
LIB
"
;
--
replace_result
$UDF_EXAMPLE_
SO
UDF_EXAMPLE_LIB
eval
CREATE
FUNCTION
metaphon
RETURNS
STRING
SONAME
"
$UDF_EXAMPLE_
SO
"
;
create
table
t1
(
a
char
);
set
GLOBAL
query_cache_size
=
1355776
;
...
...
storage/federated/Makefile.am
View file @
2f8ca649
...
...
@@ -26,8 +26,6 @@ INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \
-I
$(srcdir)
WRAPLIBS
=
LDADD
=
DEFS
=
@DEFS@
noinst_HEADERS
=
ha_federated.h
...
...
@@ -37,7 +35,7 @@ pkgplugin_LTLIBRARIES = @plugin_federated_shared_target@
ha_federated_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_federated_la_CXXFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_federated_la_CFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_federated_la_SOURCES
=
ha_federated.cc
ha_federated_la_SOURCES
=
ha_federated.cc
$(top_srcdir)
/mysys/string.c
EXTRA_LIBRARIES
=
libfederated.a
...
...
storage/federated/plug.in
.disabled
→
storage/federated/plug.in
View file @
2f8ca649
MYSQL_STORAGE_ENGINE(federated,,[Federated Storage Engine],
[Connects to tables on remote MySQL servers], [
max,max-no-ndb
])
[Connects to tables on remote MySQL servers], [])
MYSQL_PLUGIN_STATIC(federated, [libfederated.a])
MYSQL_PLUGIN_DYNAMIC(federated, [ha_federated.la])
MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS(federated, [ha_federated.cc])
storage/federatedx/Makefile.am
View file @
2f8ca649
...
...
@@ -18,14 +18,14 @@ DEFS = @DEFS@
noinst_HEADERS
=
ha_federatedx.h federatedx_probes.h
EXTRA_LTLIBRARIES
=
ha_federatedx.la
pkgplugin_LTLIBRARIES
=
@plugin_federated_shared_target@
pkgplugin_LTLIBRARIES
=
@plugin_federated
x
_shared_target@
ha_federatedx_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_federatedx_la_CXXFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_federatedx_la_CFLAGS
=
$(AM_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
EXTRA_LIBRARIES
=
libfederatedx.a
noinst_LIBRARIES
=
@plugin_federated_static_target@
noinst_LIBRARIES
=
@plugin_federated
x
_static_target@
libfederatedx_a_CXXFLAGS
=
$(AM_CFLAGS)
libfederatedx_a_CFLAGS
=
$(AM_CFLAGS)
libfederatedx_a_SOURCES
=
ha_federatedx.cc federatedx_txn.cc
\
...
...
storage/federatedx/ha_federatedx.cc
View file @
2f8ca649
...
...
@@ -3495,7 +3495,7 @@ int ha_federatedx::rollback(handlerton *hton, MYSQL_THD thd, bool all)
struct
st_mysql_storage_engine
federatedx_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
federated
)
mysql_declare_plugin
(
federated
x
)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
federatedx_storage_engine
,
...
...
@@ -3511,7 +3511,7 @@ mysql_declare_plugin(federated)
NULL
/* config options */
}
mysql_declare_plugin_end
;
maria_declare_plugin
(
federated
)
maria_declare_plugin
(
federated
x
)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
federatedx_storage_engine
,
...
...
storage/federatedx/plug.in
View file @
2f8ca649
MYSQL_STORAGE_ENGINE(federated,,[FederatedX Storage Engine],
MYSQL_STORAGE_ENGINE(federated
x
,,[FederatedX Storage Engine],
[FederatedX Storage Engine], [max,max-no-ndb])
MYSQL_PLUGIN_DYNAMIC(federated, [ha_federatedx.la])
MYSQL_PLUGIN_STATIC(federated, [libfederatedx.a])
MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS(federated, [ha_federatedx.cc])
MYSQL_PLUGIN_DYNAMIC(federated
x
, [ha_federatedx.la])
MYSQL_PLUGIN_STATIC(federated
x
, [libfederatedx.a])
MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS(federated
x
, [ha_federatedx.cc])
storage/innodb_plugin/plug.in
.disabled
→
storage/innodb_plugin/plug.in
View file @
2f8ca649
...
...
@@ -15,7 +15,7 @@
#
MYSQL_STORAGE_ENGINE
(
innodb_plugin
,, [
InnoDB
Storage
Engine
],
[
Transactional
Tables
using
InnoDB
], [
max
,
max
-
no
-
ndb
])
[
Transactional
Tables
using
InnoDB
], [])
MYSQL_PLUGIN_DIRECTORY
(
innodb_plugin
, [
storage
/
innodb_plugin
])
MYSQL_PLUGIN_DYNAMIC
(
innodb_plugin
, [
ha_innodb_plugin
.
la
])
MYSQL_PLUGIN_ACTIONS
(
innodb_plugin
, [
...
...
storage/xtradb/CMakeLists.txt
View file @
2f8ca649
...
...
@@ -31,7 +31,7 @@ ENDIF (CMAKE_SIZEOF_VOID_P MATCHES 8)
ADD_DEFINITIONS
(
-D_WIN32 -D_LIB -DMYSQL_SERVER
)
# Include directories under
innobase
# Include directories under
xtradb
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/storage/xtradb/include
${
CMAKE_SOURCE_DIR
}
/storage/xtradb/handler
)
...
...
@@ -49,7 +49,7 @@ IF (MSVC AND $(WIN64))
PROPERTIES COMPILE_FLAGS -Od
)
ENDIF
(
MSVC AND $
(
WIN64
))
SET
(
INNOBASE
_SOURCES btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c btr/btr0sea.c
SET
(
XTRADB
_SOURCES btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c btr/btr0sea.c
buf/buf0buddy.c buf/buf0buf.c buf/buf0flu.c buf/buf0lru.c buf/buf0rea.c
data/data0data.c data/data0type.c
dict/dict0boot.c dict/dict0crea.c dict/dict0dict.c dict/dict0load.c dict/dict0mem.c
...
...
@@ -85,17 +85,16 @@ SET(INNOBASE_SOURCES btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c btr/btr0sea.c
ADD_DEFINITIONS
(
-DHAVE_WINDOWS_ATOMICS -DIB_HAVE_PAUSE_INSTRUCTION
)
IF
(
MYSQL_VERSION_ID GREATER
"50137"
)
MYSQL_STORAGE_ENGINE
(
INNOBASE
)
# Use ha_innodb for plugin name, if plugin is built
GET_TARGET_PROPERTY
(
LIB_LOCATION ha_innobase LOCATION
)
MYSQL_STORAGE_ENGINE
(
XTRADB
)
GET_TARGET_PROPERTY
(
LIB_LOCATION ha_xtradb LOCATION
)
IF
(
LIB_LOCATION
)
SET_TARGET_PROPERTIES
(
ha_
innobase PROPERTIES OUTPUT_NAME ha_inno
db
)
SET_TARGET_PROPERTIES
(
ha_
xtradb PROPERTIES OUTPUT_NAME ha_xtra
db
)
ENDIF
(
LIB_LOCATION
)
ELSE
(
MYSQL_VERSION_ID GREATER
"50137"
)
IF
(
NOT SOURCE_SUBLIBS
)
ADD_DEFINITIONS
(
-D_WIN32 -DMYSQL_SERVER
)
ADD_LIBRARY
(
innobase STATIC
${
INNOBASE
_SOURCES
}
)
ADD_LIBRARY
(
xtradb STATIC
${
XTRADB
_SOURCES
}
)
# Require mysqld_error.h, which is built as part of the GenError
ADD_DEPENDENCIES
(
innobase
GenError
)
ADD_DEPENDENCIES
(
xtradb
GenError
)
ENDIF
(
NOT SOURCE_SUBLIBS
)
ENDIF
(
MYSQL_VERSION_ID GREATER
"50137"
)
storage/xtradb/Makefile.am
View file @
2f8ca649
...
...
@@ -228,9 +228,9 @@ noinst_HEADERS= \
handler/innodb_patch_info.h
\
mem/mem0dbg.c
EXTRA_LIBRARIES
=
lib
innobase
.a
noinst_LIBRARIES
=
@plugin_
innobase
_static_target@
lib
innobase
_a_SOURCES
=
\
EXTRA_LIBRARIES
=
lib
xtradb
.a
noinst_LIBRARIES
=
@plugin_
xtradb
_static_target@
lib
xtradb
_a_SOURCES
=
\
btr/btr0btr.c
\
btr/btr0cur.c
\
btr/btr0pcur.c
\
...
...
@@ -324,16 +324,16 @@ libinnobase_a_SOURCES= \
ut/ut0vec.c
\
ut/ut0wqueue.c
lib
innobase
_a_CXXFLAGS
=
$(AM_CFLAGS)
lib
innobase
_a_CFLAGS
=
$(AM_CFLAGS)
lib
xtradb
_a_CXXFLAGS
=
$(AM_CFLAGS)
lib
xtradb
_a_CFLAGS
=
$(AM_CFLAGS)
EXTRA_LTLIBRARIES
=
ha_
inno
db.la
pkgplugin_LTLIBRARIES
=
@plugin_
innobase
_shared_target@
EXTRA_LTLIBRARIES
=
ha_
xtra
db.la
pkgplugin_LTLIBRARIES
=
@plugin_
xtradb
_shared_target@
ha_
inno
db_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_
inno
db_la_CXXFLAGS
=
$(AM_CFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_
inno
db_la_CFLAGS
=
$(AM_CFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_
innodb_la_SOURCES
=
$(libinnobase
_a_SOURCES)
ha_
xtra
db_la_LDFLAGS
=
-module
-rpath
$(pkgplugindir)
ha_
xtra
db_la_CXXFLAGS
=
$(AM_CFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_
xtra
db_la_CFLAGS
=
$(AM_CFLAGS)
$(INNODB_DYNAMIC_CFLAGS)
ha_
xtradb_la_SOURCES
=
$(libxtradb
_a_SOURCES)
EXTRA_DIST
=
CMakeLists.txt plug.in
\
pars/make_bison.sh pars/make_flex.sh
\
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
2f8ca649
...
...
@@ -10931,7 +10931,7 @@ static struct st_mysql_sys_var* innobase_system_variables[]= {
NULL
};
mysql_declare_plugin
(
innobase
)
mysql_declare_plugin
(
xtradb
)
{
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
innobase_storage_engine
,
...
...
@@ -10964,7 +10964,7 @@ i_s_innodb_sys_tables,
i_s_innodb_sys_indexes
,
i_s_innodb_patches
mysql_declare_plugin_end
;
maria_declare_plugin
(
innobase
)
maria_declare_plugin
(
xtradb
)
{
/* InnoDB */
MYSQL_STORAGE_ENGINE_PLUGIN
,
&
innobase_storage_engine
,
...
...
storage/xtradb/include/rem0rec.ic
View file @
2f8ca649
...
...
@@ -268,7 +268,7 @@ rec_get_next_ptr_const(
return(NULL);
}
if (UNIV_
EXPECT(comp, REC_OFFS_COMPACT
)) {
if (UNIV_
LIKELY(comp != 0
)) {
#if UNIV_PAGE_SIZE <= 32768
/* Note that for 64 KiB pages, field_value can 'wrap around'
and the debug assertion is not valid */
...
...
@@ -336,7 +336,7 @@ rec_get_next_offs(
field_value = mach_read_from_2(rec - REC_NEXT);
if (UNIV_
EXPECT(comp, REC_OFFS_COMPACT
)) {
if (UNIV_
LIKELY(comp != 0
)) {
#if UNIV_PAGE_SIZE <= 32768
/* Note that for 64 KiB pages, field_value can 'wrap around'
and the debug assertion is not valid */
...
...
@@ -647,7 +647,7 @@ rec_get_info_and_status_bits(
& (REC_INFO_BITS_MASK >> REC_INFO_BITS_SHIFT)
# error "REC_NEW_STATUS_MASK and REC_INFO_BITS_MASK overlap"
#endif
if (UNIV_
EXPECT(comp, REC_OFFS_COMPACT
)) {
if (UNIV_
LIKELY(comp != 0
)) {
bits = rec_get_info_bits(rec, TRUE) | rec_get_status(rec);
} else {
bits = rec_get_info_bits(rec, FALSE);
...
...
@@ -683,7 +683,7 @@ rec_get_deleted_flag(
const rec_t* rec, /*!< in: physical record */
ulint comp) /*!< in: nonzero=compact page format */
{
if (UNIV_
EXPECT(comp, REC_OFFS_COMPACT
)) {
if (UNIV_
LIKELY(comp != 0
)) {
return(UNIV_UNLIKELY(
rec_get_bit_field_1(rec, REC_NEW_INFO_BITS,
REC_INFO_DELETED_FLAG,
...
...
storage/xtradb/plug.in
View file @
2f8ca649
...
...
@@ -14,12 +14,13 @@
# Place, Suite 330, Boston, MA 02111-1307 USA
#
MYSQL_STORAGE_ENGINE
(
innobase
,
innodb
, [
InnoDB
Storage
Engine
],
[
Transactional
Tables
using
InnoDB
], [
max
,
max
-
no
-
ndb
])
MYSQL_PLUGIN_DIRECTORY
(
innobase
, [
storage
/
xtradb
])
MYSQL_PLUGIN_STATIC
(
innobase
, [
libinnobase
.
a
])
MYSQL_PLUGIN_DYNAMIC
(
innobase
, [
ha_innodb
.
la
])
MYSQL_PLUGIN_ACTIONS
(
innobase
, [
MYSQL_STORAGE_ENGINE
(
xtradb
,
xtradb
, [
XtraDB
Storage
Engine
],
[
XtraDB
-
a
drop
-
in
replacement
for
InnoDB
], [
max
,
max
-
no
-
ndb
])
MYSQL_PLUGIN_DIRECTORY
(
xtradb
, [
storage
/
xtradb
])
MYSQL_PLUGIN_STATIC
(
xtradb
, [
libxtradb
.
a
])
MYSQL_PLUGIN_DYNAMIC
(
xtradb
, [
ha_xtradb
.
la
])
MYSQL_PLUGIN_ACTIONS
(
xtradb
, [
with_plugin_innobase
=$
with_plugin_xtradb
# for legacy code in configure.in
AC_CHECK_LIB
(
rt
,
aio_read
, [
innodb_system_libs
=
"-lrt"
])
AC_SUBST
(
innodb_system_libs
)
AC_CHECK_HEADERS
(
aio
.
h
sched
.
h
)
...
...
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