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
c03b19c8
Commit
c03b19c8
authored
Sep 03, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.0/
into serg.mylan:/usr/home/serg/Abk/mysql-4.0
parents
400ed7e7
222db574
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
1 deletion
+48
-1
libmysql/get_password.c
libmysql/get_password.c
+1
-1
mysql-test/r/bdb.result
mysql-test/r/bdb.result
+31
-0
mysql-test/t/bdb.test
mysql-test/t/bdb.test
+13
-0
sql/ha_berkeley.cc
sql/ha_berkeley.cc
+3
-0
No files found.
libmysql/get_password.c
View file @
c03b19c8
...
...
@@ -78,7 +78,7 @@ char *get_tty_password(char *opt_message)
char
*
pos
=
to
,
*
end
=
to
+
sizeof
(
to
)
-
1
;
int
i
=
0
;
DBUG_ENTER
(
"get_tty_password"
);
fprintf
(
stdout
,
opt_message
?
opt_message
:
"Enter password: "
);
_cputs
(
opt_message
?
opt_message
:
"Enter password: "
);
for
(;;)
{
char
tmp
;
...
...
mysql-test/r/bdb.result
View file @
c03b19c8
...
...
@@ -1123,3 +1123,34 @@ a b
select * from t2;
a b
drop table t1,t2;
create table t1 (x int not null, index(x)) type=bdb;
insert into t1 values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
select * from t1 where x <= 10 and x >= 7;
x
7
8
9
10
select * from t1 where x <= 10 and x >= 7 order by x;
x
7
8
9
10
select * from t1 where x <= 10 and x >= 7 order by x desc;
x
10
9
8
7
select * from t1 where x <= 8 and x >= 5 order by x desc;
x
8
7
6
5
select * from t1 where x < 8 and x > 5 order by x desc;
x
7
6
drop table t1;
mysql-test/t/bdb.test
View file @
c03b19c8
...
...
@@ -783,3 +783,16 @@ select * from t1;
select
*
from
t2
;
select
*
from
t2
;
drop
table
t1
,
t2
;
#
# The bug #971
#
create
table
t1
(
x
int
not
null
,
index
(
x
))
type
=
bdb
;
insert
into
t1
values
(
1
),
(
2
),
(
3
),
(
4
),
(
5
),
(
6
),
(
7
),
(
8
),
(
9
),
(
10
);
select
*
from
t1
where
x
<=
10
and
x
>=
7
;
select
*
from
t1
where
x
<=
10
and
x
>=
7
order
by
x
;
select
*
from
t1
where
x
<=
10
and
x
>=
7
order
by
x
desc
;
select
*
from
t1
where
x
<=
8
and
x
>=
5
order
by
x
desc
;
select
*
from
t1
where
x
<
8
and
x
>
5
order
by
x
desc
;
drop
table
t1
;
sql/ha_berkeley.cc
View file @
c03b19c8
...
...
@@ -1420,6 +1420,8 @@ int ha_berkeley::index_read(byte * buf, const byte * key,
bzero
((
char
*
)
&
row
,
sizeof
(
row
));
if
(
key_len
==
key_info
->
key_length
)
{
if
(
find_flag
==
HA_READ_AFTER_KEY
)
key_info
->
handler
.
bdb_return_if_eq
=
1
;
error
=
read_row
(
cursor
->
c_get
(
cursor
,
pack_key
(
&
last_key
,
active_index
,
key_buff
,
...
...
@@ -1428,6 +1430,7 @@ int ha_berkeley::index_read(byte * buf, const byte * key,
(
find_flag
==
HA_READ_KEY_EXACT
?
DB_SET
:
DB_SET_RANGE
)),
(
char
*
)
buf
,
active_index
,
&
row
,
(
DBT
*
)
0
,
0
);
key_info
->
handler
.
bdb_return_if_eq
=
0
;
}
else
{
...
...
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