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
baa9ff82
Commit
baa9ff82
authored
Apr 10, 2008
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-build
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-build
parents
3828535b
e68f3e8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sql/field.cc
sql/field.cc
+1
-1
No files found.
sql/field.cc
View file @
baa9ff82
...
@@ -9623,7 +9623,7 @@ bool Create_field::init(THD *thd, char *fld_name, enum_field_types fld_type,
...
@@ -9623,7 +9623,7 @@ bool Create_field::init(THD *thd, char *fld_name, enum_field_types fld_type,
and 19 as length of 4.1 compatible representation. Silently
and 19 as length of 4.1 compatible representation. Silently
shrink it to MAX_DATETIME_COMPRESSED_WIDTH.
shrink it to MAX_DATETIME_COMPRESSED_WIDTH.
*/
*/
DBUG_ASSERT
(
MAX_DATETIME_COMPRESSED_WIDTH
<
UINT_MAX
);
DBUG_ASSERT
(
MAX_DATETIME_COMPRESSED_WIDTH
<
UINT_MAX
);
if
(
length
!=
UINT_MAX
)
/* avoid overflow; is safe because of min() */
if
(
length
!=
UINT_MAX
)
/* avoid overflow; is safe because of min() */
length
=
((
length
+
1
)
/
2
)
*
2
;
length
=
((
length
+
1
)
/
2
)
*
2
;
length
=
min
(
length
,
MAX_DATETIME_COMPRESSED_WIDTH
);
length
=
min
(
length
,
MAX_DATETIME_COMPRESSED_WIDTH
);
...
...
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