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
c56a16b5
Commit
c56a16b5
authored
Jun 10, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
7fb04c4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sql/sql_parse.cc
sql/sql_parse.cc
+4
-2
No files found.
sql/sql_parse.cc
View file @
c56a16b5
...
...
@@ -3157,10 +3157,12 @@ bool add_field_to_list(char *field_name, enum_field_types type,
break
;
case
FIELD_TYPE_DECIMAL
:
if
(
!
length
)
if
(
new_field
->
length
=
new_field
->
decimals
)
{
if
((
new_field
->
length
=
new_field
->
decimals
))
new_field
->
length
++
;
else
new_field
->
length
=
10
;
// Default length for DECIMAL
new_field
->
length
=
10
;
// Default length for DECIMAL
}
if
(
new_field
->
length
<
MAX_FIELD_WIDTH
)
// Skip wrong argument
{
new_field
->
length
+=
sign_len
;
...
...
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