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
25dfe205
Commit
25dfe205
authored
Aug 29, 2007
by
gkodinov/kgeorge@magare.gmz
Browse files
Options
Browse Files
Download
Plain Diff
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
into magare.gmz:/home/kgeorge/mysql/autopush/B30244-5.1-opt
parents
7d0c8bbb
56b6db1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
0 deletions
+59
-0
mysql-test/suite/rpl/r/rpl_row_unsafe_funcs.result
mysql-test/suite/rpl/r/rpl_row_unsafe_funcs.result
+22
-0
mysql-test/suite/rpl/t/rpl_row_unsafe_funcs.test
mysql-test/suite/rpl/t/rpl_row_unsafe_funcs.test
+35
-0
sql/item_create.cc
sql/item_create.cc
+2
-0
No files found.
mysql-test/suite/rpl/r/rpl_row_unsafe_funcs.result
0 → 100644
View file @
25dfe205
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
CREATE TABLE t1 (a INT);
CREATE TABLE t2 (a INT, b INT);
INSERT INTO t1 SELECT 1;
INSERT INTO t1 VALUES (2),(3),(4),(5),(6);
INSERT INTO t2 SELECT 1, ROW_COUNT();
INSERT INTO t1 VALUES (2),(3),(4);
INSERT INTO t2 SELECT 2, ROW_COUNT();
SELECT b FROM t2 ORDER BY a;
b
1
3
SELECT b FROM t2 ORDER BY a;
b
1
3
DROP TABLE t1, t2;
mysql-test/suite/rpl/t/rpl_row_unsafe_funcs.test
0 → 100644
View file @
25dfe205
source
include
/
master
-
slave
.
inc
;
source
include
/
have_binlog_format_mixed
.
inc
;
#
# Bug #30244: row_count/found_rows does not replicate well
#
connection
master
;
CREATE
TABLE
t1
(
a
INT
);
CREATE
TABLE
t2
(
a
INT
,
b
INT
);
INSERT
INTO
t1
SELECT
1
;
connection
master1
;
INSERT
INTO
t1
VALUES
(
2
),(
3
),(
4
),(
5
),(
6
);
connection
master
;
INSERT
INTO
t2
SELECT
1
,
ROW_COUNT
();
INSERT
INTO
t1
VALUES
(
2
),(
3
),(
4
);
INSERT
INTO
t2
SELECT
2
,
ROW_COUNT
();
#must return 1 and 3
SELECT
b
FROM
t2
ORDER
BY
a
;
sync_slave_with_master
;
#must return 1 and 3
SELECT
b
FROM
t2
ORDER
BY
a
;
connection
master
;
DROP
TABLE
t1
,
t2
;
sync_slave_with_master
;
connection
master
;
sql/item_create.cc
View file @
25dfe205
...
...
@@ -3339,6 +3339,7 @@ Create_func_found_rows Create_func_found_rows::s_singleton;
Item
*
Create_func_found_rows
::
create
(
THD
*
thd
)
{
thd
->
lex
->
set_stmt_unsafe
();
thd
->
lex
->
safe_to_cache_query
=
0
;
return
new
(
thd
->
mem_root
)
Item_func_found_rows
();
}
...
...
@@ -4234,6 +4235,7 @@ Create_func_row_count Create_func_row_count::s_singleton;
Item
*
Create_func_row_count
::
create
(
THD
*
thd
)
{
thd
->
lex
->
set_stmt_unsafe
();
thd
->
lex
->
safe_to_cache_query
=
0
;
return
new
(
thd
->
mem_root
)
Item_func_row_count
();
}
...
...
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