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
39176e9f
Commit
39176e9f
authored
Mar 29, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql_cab_desk.:C:/source/c++/mysql-5.1-new-rpl
into mysql_cab_desk.:C:/source/c++/mysql-5.1_WL_3629_test
parents
85f7c677
d3ef3c9f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
34 deletions
+35
-34
mysql-test/include/rpl_udf.inc
mysql-test/include/rpl_udf.inc
+2
-1
mysql-test/r/rpl_udf.result
mysql-test/r/rpl_udf.result
+32
-32
scripts/mysql_system_tables_fix.sql
scripts/mysql_system_tables_fix.sql
+1
-1
No files found.
mysql-test/include/rpl_udf.inc
View file @
39176e9f
...
...
@@ -34,6 +34,7 @@ eval CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "$UDF_EXAMPLE_LIB";
--replace_result
$UDF_EXAMPLE_LIB
UDF_EXAMPLE_LIB
--error ER_CANT_FIND_DL_ENTRY
eval CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "
$UDF_EXAMPLE_LIB
";
--replace_column 3 UDF_LIB
SELECT * FROM mysql.func;
--disable_info
...
...
@@ -105,7 +106,7 @@ DROP TABLE t1;
--
echo
"Running on the master"
--
enable_info
CREATE
FUNCTION
myfuncsql_int
(
i
INT
)
RETURNS
INTEGER
DETERMINISTIC
RETURN
i
;
CREATE
FUNCTION
myfuncsql_double
(
d
DOUBLE
)
RETURNS
INTEGER
DETERMINISTIC
RETURN
d
*
0.95
;
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%'
;
--
disable_info
...
...
mysql-test/r/rpl_udf.result
View file @
39176e9f
...
...
@@ -16,8 +16,8 @@ CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
ERROR HY000: Can't find symbol 'myfunc_nonexist' in library
SELECT * FROM mysql.func;
name ret dl type
myfunc_double 1
udf_example.dll
function
myfunc_int 2
udf_example.dll
function
myfunc_double 1
UDF_LIB
function
myfunc_int 2
UDF_LIB
function
affected rows: 2
"Running on the slave"
SELECT * FROM mysql.func;
...
...
@@ -78,17 +78,17 @@ affected rows: 0
"Running on the master"
CREATE FUNCTION myfuncsql_int(i INT) RETURNS INTEGER DETERMINISTIC RETURN i;
affected rows: 0
CREATE FUNCTION myfuncsql_double(d DOUBLE) RETURNS INTEGER DETERMINISTIC RETURN d *
0.95
;
CREATE FUNCTION myfuncsql_double(d DOUBLE) RETURNS INTEGER DETERMINISTIC RETURN d *
2.00
;
affected rows: 0
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
0.95
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
2.00
test myfuncsql_int FUNCTION i INT RETURN i
affected rows: 2
"Running on the slave"
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
0.95
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
2.00
test myfuncsql_int FUNCTION i INT RETURN i
affected rows: 2
"Running on the master"
...
...
@@ -104,18 +104,18 @@ INSERT INTO t1 VALUES(myfuncsql_int(1), myfuncsql_double(500.00));
affected rows: 1
SELECT * FROM t1 ORDER BY sum;
sum price
1
475
10
5
100
47
200
24
1
1000
10
10
100
100
200
50
affected rows: 4
"Running on the slave"
SELECT * FROM t1 ORDER BY sum;
sum price
1
475
10
5
100
47
200
24
1
1000
10
10
100
100
200
50
affected rows: 4
"Running on the master"
ALTER FUNCTION myfuncsql_int COMMENT "This was altered.";
...
...
@@ -124,13 +124,13 @@ ALTER FUNCTION myfuncsql_double COMMENT "This was altered.";
affected rows: 0
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
0.95
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.
affected rows: 2
"Running on the slave"
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
0.95
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.
affected rows: 2
SELECT myfuncsql_int(25);
...
...
@@ -139,7 +139,7 @@ myfuncsql_int(25)
affected rows: 1
SELECT myfuncsql_double(75.00);
myfuncsql_double(75.00)
71
150
affected rows: 1
"Running on the master"
DROP FUNCTION myfuncsql_double;
...
...
@@ -168,8 +168,8 @@ CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "UDF_EXAMPLE_LIB";
ERROR HY000: Can't find symbol 'myfunc_nonexist' in library
SELECT * FROM mysql.func;
name ret dl type
myfunc_int 2
udf_example.dll
function
myfunc_double 1
udf_example.dll
function
myfunc_int 2
UDF_LIB
function
myfunc_double 1
UDF_LIB
function
affected rows: 2
"Running on the slave"
SELECT * FROM mysql.func;
...
...
@@ -230,17 +230,17 @@ affected rows: 0
"Running on the master"
CREATE FUNCTION myfuncsql_int(i INT) RETURNS INTEGER DETERMINISTIC RETURN i;
affected rows: 0
CREATE FUNCTION myfuncsql_double(d DOUBLE) RETURNS INTEGER DETERMINISTIC RETURN d *
0.95
;
CREATE FUNCTION myfuncsql_double(d DOUBLE) RETURNS INTEGER DETERMINISTIC RETURN d *
2.00
;
affected rows: 0
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
0.95
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
2.00
test myfuncsql_int FUNCTION i INT RETURN i
affected rows: 2
"Running on the slave"
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
0.95
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
2.00
test myfuncsql_int FUNCTION i INT RETURN i
affected rows: 2
"Running on the master"
...
...
@@ -256,18 +256,18 @@ INSERT INTO t1 VALUES(myfuncsql_int(1), myfuncsql_double(500.00));
affected rows: 1
SELECT * FROM t1 ORDER BY sum;
sum price
1
475
10
5
100
47
200
24
1
1000
10
10
100
100
200
50
affected rows: 4
"Running on the slave"
SELECT * FROM t1 ORDER BY sum;
sum price
1
475
10
5
100
47
200
24
1
1000
10
10
100
100
200
50
affected rows: 4
"Running on the master"
ALTER FUNCTION myfuncsql_int COMMENT "This was altered.";
...
...
@@ -276,13 +276,13 @@ ALTER FUNCTION myfuncsql_double COMMENT "This was altered.";
affected rows: 0
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
0.95
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.
affected rows: 2
"Running on the slave"
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
db name type param_list body comment
test myfuncsql_double FUNCTION d DOUBLE RETURN d *
0.95
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.
affected rows: 2
SELECT myfuncsql_int(25);
...
...
@@ -291,7 +291,7 @@ myfuncsql_int(25)
affected rows: 1
SELECT myfuncsql_double(75.00);
myfuncsql_double(75.00)
71
150
affected rows: 1
"Running on the master"
DROP FUNCTION myfuncsql_double;
...
...
scripts/mysql_system_tables_fix.sql
View file @
39176e9f
...
...
@@ -481,7 +481,7 @@ ALTER TABLE event ADD COLUMN originator INT(10) NOT NULL;
ALTER
TABLE
event
MODIFY
COLUMN
status
ENUM
(
'ENABLED'
,
'DISABLED'
,
'SLAVESIDE_DISABLED'
)
NOT
NULL
default
'ENABLED'
;
ALTER
TABLE
event
ADD
COLUMN
time_zone
char
(
64
)
CHARACTER
SET
latin1
NOT
NULL
DEFAULT
'SYSTEM'
AFTER
comment
;
NOT
NULL
DEFAULT
'SYSTEM'
AFTER
originator
;
#
#
TRIGGER
privilege
...
...
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