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
3d7649ca
Commit
3d7649ca
authored
Dec 20, 2004
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb: index tests
parent
6463a6d7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
961 additions
and
265 deletions
+961
-265
mysql-test/ndb/ndb_range_bounds.pl
mysql-test/ndb/ndb_range_bounds.pl
+4
-2
mysql-test/r/ndb_index_ordered.result
mysql-test/r/ndb_index_ordered.result
+1
-0
mysql-test/t/ndb_index_ordered.test
mysql-test/t/ndb_index_ordered.test
+2
-0
ndb/test/ndbapi/testOIBasic.cpp
ndb/test/ndbapi/testOIBasic.cpp
+954
-263
No files found.
mysql-test/ndb/ndb_range_bounds.pl
View file @
3d7649ca
#
#
# test range scan bounds
# test range scan bounds
# give option --all to test all cases
# give option --all to test all cases
# set MYSQL_HOME to installation top
#
#
use
strict
;
use
strict
;
...
@@ -14,8 +15,9 @@ my $opt_verbose = 0;
...
@@ -14,8 +15,9 @@ my $opt_verbose = 0;
GetOptions
("
all
"
=>
\
$opt_all
,
"
cnt=i
"
=>
\
$opt_cnt
,
"
verbose
"
=>
\
$opt_verbose
)
GetOptions
("
all
"
=>
\
$opt_all
,
"
cnt=i
"
=>
\
$opt_cnt
,
"
verbose
"
=>
\
$opt_verbose
)
or
die
"
options are: --all --cnt=N --verbose
";
or
die
"
options are: --all --cnt=N --verbose
";
my
$mysql_top
=
$ENV
{
MYSQL_TOP
};
my
$mysql_home
=
$ENV
{
MYSQL_HOME
};
my
$dsn
=
"
dbi:mysql:database=test;host=localhost;mysql_read_default_file=
$mysql_top
/.target/var/my.cnf
";
defined
(
$mysql_home
)
or
die
"
no MYSQL_HOME
";
my
$dsn
=
"
dbi:mysql:database=test;host=localhost;mysql_read_default_file=
$mysql_home
/var/my.cnf
";
my
$opts
=
{
RaiseError
=>
0
,
PrintError
=>
0
,
AutoCommit
=>
1
,
};
my
$opts
=
{
RaiseError
=>
0
,
PrintError
=>
0
,
AutoCommit
=>
1
,
};
my
$dbh
;
my
$dbh
;
...
...
mysql-test/r/ndb_index_ordered.result
View file @
3d7649ca
...
@@ -383,6 +383,7 @@ b c
...
@@ -383,6 +383,7 @@ b c
select min(b), max(b) from t1;
select min(b), max(b) from t1;
min(b) max(b)
min(b) max(b)
1 5000000
1 5000000
drop table t1;
CREATE TABLE test1 (
CREATE TABLE test1 (
SubscrID int(11) NOT NULL auto_increment,
SubscrID int(11) NOT NULL auto_increment,
UsrID int(11) NOT NULL default '0',
UsrID int(11) NOT NULL default '0',
...
...
mysql-test/t/ndb_index_ordered.test
View file @
3d7649ca
...
@@ -175,6 +175,8 @@ select b, c from t1 where 1000<=b and b<=100000 and c<'j' order by b, c;
...
@@ -175,6 +175,8 @@ select b, c from t1 where 1000<=b and b<=100000 and c<'j' order by b, c;
select
b
,
c
from
t1
where
1000
<=
b
and
b
<=
100000
and
c
<
'j'
order
by
b
desc
,
c
desc
;
select
b
,
c
from
t1
where
1000
<=
b
and
b
<=
100000
and
c
<
'j'
order
by
b
desc
,
c
desc
;
#
#
select
min
(
b
),
max
(
b
)
from
t1
;
select
min
(
b
),
max
(
b
)
from
t1
;
#
drop
table
t1
;
#
#
# Bug #6435
# Bug #6435
...
...
ndb/test/ndbapi/testOIBasic.cpp
View file @
3d7649ca
This diff is collapsed.
Click to expand it.
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