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
57784eae
Commit
57784eae
authored
Apr 10, 2008
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mismerge.
sql/field.cc: Fix indentation of new line.
parent
f7687010
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sql/field.cc
sql/field.cc
+1
-1
sql/item_create.cc
sql/item_create.cc
+1
-1
No files found.
sql/field.cc
View file @
57784eae
...
...
@@ -8615,7 +8615,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
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() */
length
=
((
length
+
1
)
/
2
)
*
2
;
length
=
min
(
length
,
MAX_DATETIME_COMPRESSED_WIDTH
);
...
...
sql/item_create.cc
View file @
57784eae
...
...
@@ -531,7 +531,7 @@ Item *create_func_cast(Item *a, Cast_target cast_type,
ulong
decoded_size
;
errno
=
0
;
decoded_size
=
strtoul
(
c_len
,
NULL
,
10
);
if
(
errno
!=
0
)
if
(
(
errno
!=
0
)
||
(
decoded_size
>
MAX_FIELD_BLOBLENGTH
)
)
{
my_error
(
ER_TOO_BIG_DISPLAYWIDTH
,
MYF
(
0
),
"cast as char"
,
MAX_FIELD_BLOBLENGTH
);
return
NULL
;
...
...
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