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
0e20ef0a
Commit
0e20ef0a
authored
Feb 01, 2007
by
mskold/marty@mysql.com/linux.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0
into mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb
parents
b0d94e9d
c16251ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
2 deletions
+51
-2
mysql-test/r/ndb_read_multi_range.result
mysql-test/r/ndb_read_multi_range.result
+17
-0
mysql-test/t/ndb_read_multi_range.test
mysql-test/t/ndb_read_multi_range.test
+29
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+5
-2
No files found.
mysql-test/r/ndb_read_multi_range.result
View file @
0e20ef0a
...
@@ -381,3 +381,20 @@ SELECT id, tag, doc, type FROM t1 WHERE id IN ('flipper','sakila');
...
@@ -381,3 +381,20 @@ SELECT id, tag, doc, type FROM t1 WHERE id IN ('flipper','sakila');
id tag doc type
id tag doc type
sakila 1 Some text goes here text
sakila 1 Some text goes here text
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1 (
var1 int(2) NOT NULL,
var2 int(2) NOT NULL,
PRIMARY KEY (var1)
) ENGINE=ndbcluster DEFAULT CHARSET=ascii CHECKSUM=1;
CREATE TABLE t2 (
var1 int(2) NOT NULL,
var2 int(2) NOT NULL,
PRIMARY KEY (var1)
) ENGINE=MyISAM DEFAULT CHARSET=ascii CHECKSUM=1;
CREATE TRIGGER testtrigger
AFTER UPDATE ON t1 FOR EACH ROW BEGIN
REPLACE INTO t2 SELECT * FROM t1 WHERE t1.var1 = NEW.var1;END|
INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
UPDATE t1 SET var2 = 9 WHERE var1 IN(1,2,3);
DROP TRIGGER testtrigger;
DROP TABLE t1, t2;
mysql-test/t/ndb_read_multi_range.test
View file @
0e20ef0a
...
@@ -253,3 +253,32 @@ SELECT id, tag, doc, type FROM t1 WHERE id IN ('flipper','orka');
...
@@ -253,3 +253,32 @@ SELECT id, tag, doc, type FROM t1 WHERE id IN ('flipper','orka');
SELECT
id
,
tag
,
doc
,
type
FROM
t1
WHERE
id
IN
(
'flipper'
,
'sakila'
);
SELECT
id
,
tag
,
doc
,
type
FROM
t1
WHERE
id
IN
(
'flipper'
,
'sakila'
);
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#bug#25522
CREATE
TABLE
t1
(
var1
int
(
2
)
NOT
NULL
,
var2
int
(
2
)
NOT
NULL
,
PRIMARY
KEY
(
var1
)
)
ENGINE
=
ndbcluster
DEFAULT
CHARSET
=
ascii
CHECKSUM
=
1
;
CREATE
TABLE
t2
(
var1
int
(
2
)
NOT
NULL
,
var2
int
(
2
)
NOT
NULL
,
PRIMARY
KEY
(
var1
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
ascii
CHECKSUM
=
1
;
DELIMITER
|
;
CREATE
TRIGGER
testtrigger
AFTER
UPDATE
ON
t1
FOR
EACH
ROW
BEGIN
REPLACE
INTO
t2
SELECT
*
FROM
t1
WHERE
t1
.
var1
=
NEW
.
var1
;
END
|
DELIMITER
;
|
INSERT
INTO
t1
VALUES
(
1
,
1
),(
2
,
2
),(
3
,
3
);
UPDATE
t1
SET
var2
=
9
WHERE
var1
IN
(
1
,
2
,
3
);
DROP
TRIGGER
testtrigger
;
DROP
TABLE
t1
,
t2
;
sql/ha_ndbcluster.cc
View file @
0e20ef0a
...
@@ -3882,11 +3882,10 @@ int ha_ndbcluster::start_stmt(THD *thd, thr_lock_type lock_type)
...
@@ -3882,11 +3882,10 @@ int ha_ndbcluster::start_stmt(THD *thd, thr_lock_type lock_type)
ERR_RETURN
(
ndb
->
getNdbError
());
ERR_RETURN
(
ndb
->
getNdbError
());
no_uncommitted_rows_reset
(
thd
);
no_uncommitted_rows_reset
(
thd
);
thd_ndb
->
stmt
=
trans
;
thd_ndb
->
stmt
=
trans
;
thd_ndb
->
query_state
&=
NDB_QUERY_NORMAL
;
trans_register_ha
(
thd
,
FALSE
,
&
ndbcluster_hton
);
trans_register_ha
(
thd
,
FALSE
,
&
ndbcluster_hton
);
}
}
thd_ndb
->
query_state
&=
NDB_QUERY_NORMAL
;
m_active_trans
=
trans
;
m_active_trans
=
trans
;
// Start of statement
// Start of statement
m_retrieve_all_fields
=
FALSE
;
m_retrieve_all_fields
=
FALSE
;
m_retrieve_primary_key
=
FALSE
;
m_retrieve_primary_key
=
FALSE
;
...
@@ -6528,7 +6527,11 @@ close_scan:
...
@@ -6528,7 +6527,11 @@ close_scan:
}
}
if
(
multi_range_curr
==
multi_range_end
)
if
(
multi_range_curr
==
multi_range_end
)
{
Thd_ndb
*
thd_ndb
=
get_thd_ndb
(
current_thd
);
thd_ndb
->
query_state
&=
NDB_QUERY_NORMAL
;
DBUG_RETURN
(
HA_ERR_END_OF_FILE
);
DBUG_RETURN
(
HA_ERR_END_OF_FILE
);
}
/**
/**
* Read remaining ranges
* Read remaining ranges
...
...
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