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
a4e84daa
Commit
a4e84daa
authored
Jan 03, 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
344d78a5
866b02b9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
9 deletions
+46
-9
mysql-test/r/ndb_read_multi_range.result
mysql-test/r/ndb_read_multi_range.result
+14
-0
mysql-test/t/ndb_read_multi_range.test
mysql-test/t/ndb_read_multi_range.test
+15
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+4
-7
sql/mysqld.cc
sql/mysqld.cc
+13
-2
No files found.
mysql-test/r/ndb_read_multi_range.result
View file @
a4e84daa
...
@@ -367,3 +367,17 @@ a b c
...
@@ -367,3 +367,17 @@ a b c
406994 67 2006-02-27 11:26:46
406994 67 2006-02-27 11:26:46
406995 67 2006-02-28 11:55:00
406995 67 2006-02-28 11:55:00
DROP TABLE t1, t11, t12, t21, t22;
DROP TABLE t1, t11, t12, t21, t22;
CREATE TABLE t1 (id varchar(255) NOT NULL,
tag int(11) NOT NULL,
doc text NOT NULL,
type varchar(150) NOT NULL,
modified timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id)
) ENGINE=ndbcluster;
INSERT INTO t1 VALUES ('sakila',1,'Some text goes here','text',CURRENT_TIMESTAMP);
SELECT id, tag, doc, type FROM t1 WHERE id IN ('flipper','orka');
id tag doc type
SELECT id, tag, doc, type FROM t1 WHERE id IN ('flipper','sakila');
id tag doc type
sakila 1 Some text goes here text
DROP TABLE t1;
mysql-test/t/ndb_read_multi_range.test
View file @
a4e84daa
...
@@ -238,3 +238,18 @@ select * from t12 order by 1,2,3;
...
@@ -238,3 +238,18 @@ select * from t12 order by 1,2,3;
select
*
from
t21
order
by
1
,
2
,
3
;
select
*
from
t21
order
by
1
,
2
,
3
;
select
*
from
t22
order
by
1
,
2
,
3
;
select
*
from
t22
order
by
1
,
2
,
3
;
DROP
TABLE
t1
,
t11
,
t12
,
t21
,
t22
;
DROP
TABLE
t1
,
t11
,
t12
,
t21
,
t22
;
# bug#19956
CREATE
TABLE
t1
(
id
varchar
(
255
)
NOT
NULL
,
tag
int
(
11
)
NOT
NULL
,
doc
text
NOT
NULL
,
type
varchar
(
150
)
NOT
NULL
,
modified
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
PRIMARY
KEY
(
id
)
)
ENGINE
=
ndbcluster
;
INSERT
INTO
t1
VALUES
(
'sakila'
,
1
,
'Some text goes here'
,
'text'
,
CURRENT_TIMESTAMP
);
SELECT
id
,
tag
,
doc
,
type
FROM
t1
WHERE
id
IN
(
'flipper'
,
'orka'
);
SELECT
id
,
tag
,
doc
,
type
FROM
t1
WHERE
id
IN
(
'flipper'
,
'sakila'
);
DROP
TABLE
t1
;
sql/ha_ndbcluster.cc
View file @
a4e84daa
...
@@ -2955,13 +2955,10 @@ KEY* key_info;
...
@@ -2955,13 +2955,10 @@ KEY* key_info;
DBUG_RETURN
(
error
==
HA_ERR_KEY_NOT_FOUND
?
HA_ERR_END_OF_FILE
:
error
);
DBUG_RETURN
(
error
==
HA_ERR_KEY_NOT_FOUND
?
HA_ERR_END_OF_FILE
:
error
);
}
}
else
if
(
type
==
UNIQUE_INDEX
)
else
if
(
type
==
UNIQUE_INDEX
)
{
DBUG_RETURN
(
unique_index_scan
(
key_info
,
error
=
unique_index_scan
(
key_info
,
start_key
->
key
,
start_key
->
key
,
start_key
->
length
,
start_key
->
length
,
buf
);
buf
));
DBUG_RETURN
(
error
==
HA_ERR_KEY_NOT_FOUND
?
HA_ERR_END_OF_FILE
:
error
);
}
break
;
break
;
default:
default:
break
;
break
;
...
...
sql/mysqld.cc
View file @
a4e84daa
...
@@ -4571,8 +4571,8 @@ enum options_mysqld
...
@@ -4571,8 +4571,8 @@ enum options_mysqld
OPT_LOG_BIN_TRUST_FUNCTION_CREATORS
,
OPT_LOG_BIN_TRUST_FUNCTION_CREATORS
,
OPT_SAFE_SHOW_DB
,
OPT_INNODB_SAFE_BINLOG
,
OPT_SAFE_SHOW_DB
,
OPT_INNODB_SAFE_BINLOG
,
OPT_INNODB
,
OPT_ISAM
,
OPT_INNODB
,
OPT_ISAM
,
OPT_ENGINE_CONDITION_PUSHDOWN
,
OPT_ENGINE_CONDITION_PUSHDOWN
,
OPT_NDBCLUSTER
,
OPT_NDB_CONNECTSTRING
,
OPT_NDB
CLUSTER
,
OPT_NDB_CONNECTSTRING
,
OPT_NDB_USE_EXACT_COUNT
,
OPT_NDB
_USE_EXACT_COUNT
,
OPT_NDB_USE_TRANSACTIONS
,
OPT_NDB_FORCE_SEND
,
OPT_NDB_AUTOINCREMENT_PREFETCH_SZ
,
OPT_NDB_FORCE_SEND
,
OPT_NDB_AUTOINCREMENT_PREFETCH_SZ
,
OPT_NDB_SHM
,
OPT_NDB_OPTIMIZED_NODE_SELECTION
,
OPT_NDB_CACHE_CHECK_TIME
,
OPT_NDB_SHM
,
OPT_NDB_OPTIMIZED_NODE_SELECTION
,
OPT_NDB_CACHE_CHECK_TIME
,
OPT_NDB_MGMD
,
OPT_NDB_NODEID
,
OPT_NDB_MGMD
,
OPT_NDB_NODEID
,
...
@@ -5203,6 +5203,17 @@ Disable with --skip-ndbcluster (will save memory).",
...
@@ -5203,6 +5203,17 @@ Disable with --skip-ndbcluster (will save memory).",
(
gptr
*
)
&
global_system_variables
.
ndb_use_exact_count
,
(
gptr
*
)
&
global_system_variables
.
ndb_use_exact_count
,
(
gptr
*
)
&
global_system_variables
.
ndb_use_exact_count
,
(
gptr
*
)
&
global_system_variables
.
ndb_use_exact_count
,
0
,
GET_BOOL
,
OPT_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
0
,
GET_BOOL
,
OPT_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
{
"ndb-use-transactions"
,
OPT_NDB_USE_TRANSACTIONS
,
"Use transactions for large inserts, if enabled then large "
"inserts will be split into several smaller transactions"
,
(
gptr
*
)
&
global_system_variables
.
ndb_use_transactions
,
(
gptr
*
)
&
global_system_variables
.
ndb_use_transactions
,
0
,
GET_BOOL
,
OPT_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
{
"ndb_use_transactions"
,
OPT_NDB_USE_TRANSACTIONS
,
"same as --ndb-use-transactions."
,
(
gptr
*
)
&
global_system_variables
.
ndb_use_transactions
,
(
gptr
*
)
&
global_system_variables
.
ndb_use_transactions
,
0
,
GET_BOOL
,
OPT_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
{
"ndb-shm"
,
OPT_NDB_SHM
,
{
"ndb-shm"
,
OPT_NDB_SHM
,
"Use shared memory connections when available."
,
"Use shared memory connections when available."
,
(
gptr
*
)
&
opt_ndb_shm
,
(
gptr
*
)
&
opt_ndb_shm
,
...
...
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