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
6153aa0a
Commit
6153aa0a
authored
Jun 10, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
sql/sql_parse.cc: Cleanup of patch
parent
adec7030
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 @
6153aa0a
...
@@ -3157,10 +3157,12 @@ bool add_field_to_list(char *field_name, enum_field_types type,
...
@@ -3157,10 +3157,12 @@ bool add_field_to_list(char *field_name, enum_field_types type,
break
;
break
;
case
FIELD_TYPE_DECIMAL
:
case
FIELD_TYPE_DECIMAL
:
if
(
!
length
)
if
(
!
length
)
if
(
new_field
->
length
=
new_field
->
decimals
)
{
if
((
new_field
->
length
=
new_field
->
decimals
))
new_field
->
length
++
;
new_field
->
length
++
;
else
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
if
(
new_field
->
length
<
MAX_FIELD_WIDTH
)
// Skip wrong argument
{
{
new_field
->
length
+=
sign_len
;
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