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
69dadfdb
Commit
69dadfdb
authored
Jun 25, 2006
by
evgen@sunlight.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
table.cc, func_time.result:
After merge fix
parent
48bfc595
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
26 deletions
+4
-26
mysql-test/r/func_time.result
mysql-test/r/func_time.result
+4
-4
sql/table.cc
sql/table.cc
+0
-22
No files found.
mysql-test/r/func_time.result
View file @
69dadfdb
...
...
@@ -799,10 +799,10 @@ sec_to_time(1) + 0, from_unixtime(1) + 0;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`now() - now()` double(23,6) NOT NULL
default
'0.000000',
`curtime() - curtime()` double(23,6) NOT NULL
default
'0.000000',
`sec_to_time(1) + 0` double(23,6)
default
NULL,
`from_unixtime(1) + 0` double(23,6)
default
NULL
`now() - now()` double(23,6) NOT NULL
DEFAULT
'0.000000',
`curtime() - curtime()` double(23,6) NOT NULL
DEFAULT
'0.000000',
`sec_to_time(1) + 0` double(23,6)
DEFAULT
NULL,
`from_unixtime(1) + 0` double(23,6)
DEFAULT
NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
End of 4.1 tests
...
...
sql/table.cc
View file @
69dadfdb
...
...
@@ -1025,28 +1025,6 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head,
if
(
share
->
key_info
[
key
].
flags
&
HA_FULLTEXT
)
share
->
key_info
[
key
].
algorithm
=
HA_KEY_ALG_FULLTEXT
;
if
(
primary_key
>=
MAX_KEY
&&
(
keyinfo
->
flags
&
HA_NOSAME
))
{
/*
If the UNIQUE key doesn't have NULL columns and is not a part key
declare this as a primary key.
*/
primary_key
=
key
;
for
(
i
=
0
;
i
<
keyinfo
->
key_parts
;
i
++
)
{
uint
fieldnr
=
key_part
[
i
].
fieldnr
;
if
(
!
fieldnr
||
share
->
field
[
fieldnr
-
1
]
->
null_ptr
||
share
->
field
[
fieldnr
-
1
]
->
key_length
()
!=
key_part
[
i
].
length
)
{
primary_key
=
MAX_KEY
;
// Can't be used
break
;
}
}
}
for
(
i
=
0
;
i
<
keyinfo
->
key_parts
;
key_part
++
,
i
++
)
{
Field
*
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