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
ebfa6c2d
Commit
ebfa6c2d
authored
Sep 01, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pnousiainen@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/export/space/pekka/ndb/version/my50
parents
944666ef
d2a0a879
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
mysql-test/r/ndb_index_ordered.result
mysql-test/r/ndb_index_ordered.result
+6
-0
mysql-test/t/ndb_index_ordered.test
mysql-test/t/ndb_index_ordered.test
+6
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+1
-1
No files found.
mysql-test/r/ndb_index_ordered.result
View file @
ebfa6c2d
...
...
@@ -652,3 +652,9 @@ show tables;
Tables_in_test
t1
drop table t1;
create table t1 (a int, c varchar(10),
primary key using hash (a), index(c)) engine=ndb;
insert into t1 (a, c) values (1,'aaa'),(3,'bbb');
select count(*) from t1 where c<'bbb';
count(*)
1
mysql-test/t/ndb_index_ordered.test
View file @
ebfa6c2d
...
...
@@ -349,4 +349,10 @@ select a from t1 where b = 2;
show
tables
;
drop
table
t1
;
# mysqld 5.0.13 crash, no bug#
create
table
t1
(
a
int
,
c
varchar
(
10
),
primary
key
using
hash
(
a
),
index
(
c
))
engine
=
ndb
;
insert
into
t1
(
a
,
c
)
values
(
1
,
'aaa'
),(
3
,
'bbb'
);
select
count
(
*
)
from
t1
where
c
<
'bbb'
;
# End of 4.1 tests
sql/ha_ndbcluster.cc
View file @
ebfa6c2d
...
...
@@ -1214,7 +1214,7 @@ inline ulong ha_ndbcluster::index_flags(uint idx_no, uint part,
static
void
shrink_varchar
(
Field
*
field
,
const
byte
*
&
ptr
,
char
*
buf
)
{
if
(
field
->
type
()
==
MYSQL_TYPE_VARCHAR
)
{
if
(
field
->
type
()
==
MYSQL_TYPE_VARCHAR
&&
ptr
!=
NULL
)
{
Field_varstring
*
f
=
(
Field_varstring
*
)
field
;
if
(
f
->
length_bytes
==
1
)
{
uint
pack_len
=
field
->
pack_length
();
...
...
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