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
ebe38940
Commit
ebe38940
authored
Aug 30, 2007
by
tsmith@ramayana.hindu.god
Browse files
Options
Browse Files
Download
Plain Diff
Merge ramayana.hindu.god:/home/tsmith/m/bk/51
into ramayana.hindu.god:/home/tsmith/m/bk/maint/51
parents
45667e64
52ae4496
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
32 deletions
+32
-32
mysql-test/include/rpl_udf.inc
mysql-test/include/rpl_udf.inc
+10
-10
mysql-test/suite/rpl/r/rpl_udf.result
mysql-test/suite/rpl/r/rpl_udf.result
+22
-22
No files found.
mysql-test/include/rpl_udf.inc
View file @
ebe38940
...
@@ -35,7 +35,7 @@ eval CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "$UDF_EXAMPLE_LIB";
...
@@ -35,7 +35,7 @@ eval CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "$UDF_EXAMPLE_LIB";
--error ER_CANT_FIND_DL_ENTRY
--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_LIB
";
--replace_column 3 UDF_LIB
--replace_column 3 UDF_LIB
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
--disable_info
--disable_info
save_master_pos;
save_master_pos;
...
@@ -46,7 +46,7 @@ sync_with_master;
...
@@ -46,7 +46,7 @@ sync_with_master;
--echo "
Running
on
the
slave
"
--echo "
Running
on
the
slave
"
--enable_info
--enable_info
--replace_column 3 UDF_LIB
--replace_column 3 UDF_LIB
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
--disable_info
--disable_info
connection master;
connection master;
...
@@ -81,7 +81,7 @@ connection master;
...
@@ -81,7 +81,7 @@ connection master;
--enable_info
--enable_info
DROP FUNCTION myfunc_double;
DROP FUNCTION myfunc_double;
DROP FUNCTION myfunc_int;
DROP FUNCTION myfunc_int;
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
--disable_info
--disable_info
sync_slave_with_master;
sync_slave_with_master;
...
@@ -89,7 +89,7 @@ sync_slave_with_master;
...
@@ -89,7 +89,7 @@ sync_slave_with_master;
# Check to see if the UDFs were dropped on the slave
# Check to see if the UDFs were dropped on the slave
--echo "
Running
on
the
slave
"
--echo "
Running
on
the
slave
"
--enable_info
--enable_info
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
--disable_info
--disable_info
connection master;
connection master;
...
@@ -108,7 +108,7 @@ DROP TABLE t1;
...
@@ -108,7 +108,7 @@ DROP TABLE t1;
--
enable_info
--
enable_info
CREATE
FUNCTION
myfuncsql_int
(
i
INT
)
RETURNS
INTEGER
DETERMINISTIC
RETURN
i
;
CREATE
FUNCTION
myfuncsql_int
(
i
INT
)
RETURNS
INTEGER
DETERMINISTIC
RETURN
i
;
CREATE
FUNCTION
myfuncsql_double
(
d
DOUBLE
)
RETURNS
INTEGER
DETERMINISTIC
RETURN
d
*
2.00
;
CREATE
FUNCTION
myfuncsql_double
(
d
DOUBLE
)
RETURNS
INTEGER
DETERMINISTIC
RETURN
d
*
2.00
;
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
;
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
ORDER
BY
name
;
--
disable_info
--
disable_info
sync_slave_with_master
;
sync_slave_with_master
;
...
@@ -116,7 +116,7 @@ sync_slave_with_master;
...
@@ -116,7 +116,7 @@ sync_slave_with_master;
# Check to see that UDF CREATE statements were replicated
# Check to see that UDF CREATE statements were replicated
--
echo
"Running on the slave"
--
echo
"Running on the slave"
--
enable_info
--
enable_info
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
;
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
ORDER
BY
name
;
--
disable_info
--
disable_info
connection
master
;
connection
master
;
...
@@ -147,7 +147,7 @@ connection master;
...
@@ -147,7 +147,7 @@ connection master;
--
enable_info
--
enable_info
ALTER
FUNCTION
myfuncsql_int
COMMENT
"This was altered."
;
ALTER
FUNCTION
myfuncsql_int
COMMENT
"This was altered."
;
ALTER
FUNCTION
myfuncsql_double
COMMENT
"This was altered."
;
ALTER
FUNCTION
myfuncsql_double
COMMENT
"This was altered."
;
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
;
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
ORDER
BY
name
;
--
disable_info
--
disable_info
sync_slave_with_master
;
sync_slave_with_master
;
...
@@ -155,7 +155,7 @@ sync_slave_with_master;
...
@@ -155,7 +155,7 @@ sync_slave_with_master;
# Check to see if data was replicated
# Check to see if data was replicated
--
echo
"Running on the slave"
--
echo
"Running on the slave"
--
enable_info
--
enable_info
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
;
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
ORDER
BY
name
;
# Check to see that the functions are available for execution on the slave
# Check to see that the functions are available for execution on the slave
SELECT
myfuncsql_int
(
25
);
SELECT
myfuncsql_int
(
25
);
...
@@ -169,7 +169,7 @@ connection master;
...
@@ -169,7 +169,7 @@ connection master;
--
enable_info
--
enable_info
DROP
FUNCTION
myfuncsql_double
;
DROP
FUNCTION
myfuncsql_double
;
DROP
FUNCTION
myfuncsql_int
;
DROP
FUNCTION
myfuncsql_int
;
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
;
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
ORDER
BY
name
;
--
disable_info
--
disable_info
sync_slave_with_master
;
sync_slave_with_master
;
...
@@ -177,7 +177,7 @@ sync_slave_with_master;
...
@@ -177,7 +177,7 @@ sync_slave_with_master;
# Check to see if the UDFs were dropped on the slave
# Check to see if the UDFs were dropped on the slave
--
echo
"Running on the slave"
--
echo
"Running on the slave"
--
enable_info
--
enable_info
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
;
SELECT
db
,
name
,
type
,
param_list
,
body
,
comment
FROM
mysql
.
proc
WHERE
db
=
'test'
AND
name
LIKE
'myfuncsql%'
ORDER
BY
name
;
--
disable_info
--
disable_info
connection
master
;
connection
master
;
...
...
mysql-test/suite/rpl/r/rpl_udf.result
View file @
ebe38940
...
@@ -14,13 +14,13 @@ CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
...
@@ -14,13 +14,13 @@ CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
affected rows: 0
affected rows: 0
CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
ERROR HY000: Can't find symbol 'myfunc_nonexist' in library
ERROR HY000: Can't find symbol 'myfunc_nonexist' in library
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
name ret dl type
name ret dl type
myfunc_double 1 UDF_LIB function
myfunc_double 1 UDF_LIB function
myfunc_int 2 UDF_LIB function
myfunc_int 2 UDF_LIB function
affected rows: 2
affected rows: 2
"Running on the slave"
"Running on the slave"
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
name ret dl type
name ret dl type
myfunc_double 1 UDF_LIB function
myfunc_double 1 UDF_LIB function
myfunc_int 2 UDF_LIB function
myfunc_int 2 UDF_LIB function
...
@@ -64,11 +64,11 @@ DROP FUNCTION myfunc_double;
...
@@ -64,11 +64,11 @@ DROP FUNCTION myfunc_double;
affected rows: 0
affected rows: 0
DROP FUNCTION myfunc_int;
DROP FUNCTION myfunc_int;
affected rows: 0
affected rows: 0
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
name ret dl type
name ret dl type
affected rows: 0
affected rows: 0
"Running on the slave"
"Running on the slave"
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
name ret dl type
name ret dl type
affected rows: 0
affected rows: 0
"Running on the master"
"Running on the master"
...
@@ -80,13 +80,13 @@ CREATE FUNCTION myfuncsql_int(i INT) RETURNS INTEGER DETERMINISTIC RETURN i;
...
@@ -80,13 +80,13 @@ CREATE FUNCTION myfuncsql_int(i INT) RETURNS INTEGER DETERMINISTIC RETURN i;
affected rows: 0
affected rows: 0
CREATE FUNCTION myfuncsql_double(d DOUBLE) RETURNS INTEGER DETERMINISTIC RETURN d * 2.00;
CREATE FUNCTION myfuncsql_double(d DOUBLE) RETURNS INTEGER DETERMINISTIC RETURN d * 2.00;
affected rows: 0
affected rows: 0
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00
test myfuncsql_int FUNCTION i INT RETURN i
test myfuncsql_int FUNCTION i INT RETURN i
affected rows: 2
affected rows: 2
"Running on the slave"
"Running on the slave"
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00
test myfuncsql_int FUNCTION i INT RETURN i
test myfuncsql_int FUNCTION i INT RETURN i
...
@@ -122,13 +122,13 @@ ALTER FUNCTION myfuncsql_int COMMENT "This was altered.";
...
@@ -122,13 +122,13 @@ ALTER FUNCTION myfuncsql_int COMMENT "This was altered.";
affected rows: 0
affected rows: 0
ALTER FUNCTION myfuncsql_double COMMENT "This was altered.";
ALTER FUNCTION myfuncsql_double COMMENT "This was altered.";
affected rows: 0
affected rows: 0
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00 This was altered.
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00 This was altered.
test myfuncsql_int FUNCTION i INT RETURN i This was altered.
test myfuncsql_int FUNCTION i INT RETURN i This was altered.
affected rows: 2
affected rows: 2
"Running on the slave"
"Running on the slave"
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00 This was altered.
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00 This was altered.
test myfuncsql_int FUNCTION i INT RETURN i This was altered.
test myfuncsql_int FUNCTION i INT RETURN i This was altered.
...
@@ -146,11 +146,11 @@ DROP FUNCTION myfuncsql_double;
...
@@ -146,11 +146,11 @@ DROP FUNCTION myfuncsql_double;
affected rows: 0
affected rows: 0
DROP FUNCTION myfuncsql_int;
DROP FUNCTION myfuncsql_int;
affected rows: 0
affected rows: 0
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
affected rows: 0
affected rows: 0
"Running on the slave"
"Running on the slave"
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
affected rows: 0
affected rows: 0
"Running on the master"
"Running on the master"
...
@@ -166,16 +166,16 @@ CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
...
@@ -166,16 +166,16 @@ CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
affected rows: 0
affected rows: 0
CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
ERROR HY000: Can't find symbol 'myfunc_nonexist' in library
ERROR HY000: Can't find symbol 'myfunc_nonexist' in library
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
name ret dl type
name ret dl type
myfunc_int 2 UDF_LIB function
myfunc_double 1 UDF_LIB function
myfunc_double 1 UDF_LIB function
myfunc_int 2 UDF_LIB function
affected rows: 2
affected rows: 2
"Running on the slave"
"Running on the slave"
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
name ret dl type
name ret dl type
myfunc_int 2 UDF_LIB function
myfunc_double 1 UDF_LIB function
myfunc_double 1 UDF_LIB function
myfunc_int 2 UDF_LIB function
affected rows: 2
affected rows: 2
"Running on the master"
"Running on the master"
CREATE TABLE t1(sum INT, price FLOAT(24)) ENGINE=MyISAM;
CREATE TABLE t1(sum INT, price FLOAT(24)) ENGINE=MyISAM;
...
@@ -224,11 +224,11 @@ DROP FUNCTION myfunc_double;
...
@@ -224,11 +224,11 @@ DROP FUNCTION myfunc_double;
affected rows: 0
affected rows: 0
DROP FUNCTION myfunc_int;
DROP FUNCTION myfunc_int;
affected rows: 0
affected rows: 0
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
name ret dl type
name ret dl type
affected rows: 0
affected rows: 0
"Running on the slave"
"Running on the slave"
SELECT * FROM mysql.func;
SELECT * FROM mysql.func
ORDER BY name
;
name ret dl type
name ret dl type
affected rows: 0
affected rows: 0
"Running on the master"
"Running on the master"
...
@@ -240,13 +240,13 @@ CREATE FUNCTION myfuncsql_int(i INT) RETURNS INTEGER DETERMINISTIC RETURN i;
...
@@ -240,13 +240,13 @@ CREATE FUNCTION myfuncsql_int(i INT) RETURNS INTEGER DETERMINISTIC RETURN i;
affected rows: 0
affected rows: 0
CREATE FUNCTION myfuncsql_double(d DOUBLE) RETURNS INTEGER DETERMINISTIC RETURN d * 2.00;
CREATE FUNCTION myfuncsql_double(d DOUBLE) RETURNS INTEGER DETERMINISTIC RETURN d * 2.00;
affected rows: 0
affected rows: 0
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00
test myfuncsql_int FUNCTION i INT RETURN i
test myfuncsql_int FUNCTION i INT RETURN i
affected rows: 2
affected rows: 2
"Running on the slave"
"Running on the slave"
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00
test myfuncsql_int FUNCTION i INT RETURN i
test myfuncsql_int FUNCTION i INT RETURN i
...
@@ -282,13 +282,13 @@ ALTER FUNCTION myfuncsql_int COMMENT "This was altered.";
...
@@ -282,13 +282,13 @@ ALTER FUNCTION myfuncsql_int COMMENT "This was altered.";
affected rows: 0
affected rows: 0
ALTER FUNCTION myfuncsql_double COMMENT "This was altered.";
ALTER FUNCTION myfuncsql_double COMMENT "This was altered.";
affected rows: 0
affected rows: 0
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00 This was altered.
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00 This was altered.
test myfuncsql_int FUNCTION i INT RETURN i This was altered.
test myfuncsql_int FUNCTION i INT RETURN i This was altered.
affected rows: 2
affected rows: 2
"Running on the slave"
"Running on the slave"
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00 This was altered.
test myfuncsql_double FUNCTION d DOUBLE RETURN d * 2.00 This was altered.
test myfuncsql_int FUNCTION i INT RETURN i This was altered.
test myfuncsql_int FUNCTION i INT RETURN i This was altered.
...
@@ -306,11 +306,11 @@ DROP FUNCTION myfuncsql_double;
...
@@ -306,11 +306,11 @@ DROP FUNCTION myfuncsql_double;
affected rows: 0
affected rows: 0
DROP FUNCTION myfuncsql_int;
DROP FUNCTION myfuncsql_int;
affected rows: 0
affected rows: 0
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
affected rows: 0
affected rows: 0
"Running on the slave"
"Running on the slave"
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'
ORDER BY name
;
db name type param_list body comment
db name type param_list body comment
affected rows: 0
affected rows: 0
"Running on the master"
"Running on the master"
...
...
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