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
b04be221
Commit
b04be221
authored
Feb 13, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new
parents
5b66df06
b1967abd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
mysql-test/r/ndb_basic.result
mysql-test/r/ndb_basic.result
+1
-1
mysql-test/t/ndb_basic.test
mysql-test/t/ndb_basic.test
+4
-2
sql/sql_base.cc
sql/sql_base.cc
+10
-0
No files found.
mysql-test/r/ndb_basic.result
View file @
b04be221
...
...
@@ -562,7 +562,7 @@ c125 int,
c126 int,
c127 int,
c128 int,
primary key
(c1)) engine=ndb
;
primary key
using hash(c1)) engine=ndb partition by key(c1)
;
drop table t1;
create table t1 (
a1234567890123456789012345678901234567890 int primary key,
...
...
mysql-test/t/ndb_basic.test
View file @
b04be221
...
...
@@ -404,7 +404,9 @@ drop table t1;
#
# test the limit of no of attributes in one table
#
# also tests bug#17179, more than 31 attributes in
# a partitioned table
#
create
table
t1
(
c1
int
,
c2
int
,
...
...
@@ -534,7 +536,7 @@ c125 int,
c126
int
,
c127
int
,
c128
int
,
primary
key
(
c1
))
engine
=
ndb
;
primary
key
using
hash
(
c1
))
engine
=
ndb
partition
by
key
(
c1
)
;
drop
table
t1
;
#
...
...
sql/sql_base.cc
View file @
b04be221
...
...
@@ -3912,8 +3912,18 @@ Field *find_field_in_table_sef(TABLE *table, const char *name)
{
Field
**
field_ptr
;
if
(
table
->
s
->
name_hash
.
records
)
{
field_ptr
=
(
Field
**
)
hash_search
(
&
table
->
s
->
name_hash
,(
byte
*
)
name
,
strlen
(
name
));
if
(
field_ptr
)
{
/*
field_ptr points to field in TABLE_SHARE. Convert it to the matching
field in table
*/
field_ptr
=
(
table
->
field
+
(
field_ptr
-
table
->
s
->
field
));
}
}
else
{
if
(
!
(
field_ptr
=
table
->
field
))
...
...
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