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
7b97b5b0
Commit
7b97b5b0
authored
Sep 24, 2004
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix alignment.
parent
b5b78019
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
sql/field.cc
sql/field.cc
+2
-1
No files found.
sql/field.cc
View file @
7b97b5b0
...
@@ -4281,8 +4281,9 @@ int Field_str::store(double nr)
...
@@ -4281,8 +4281,9 @@ int Field_str::store(double nr)
uint
length
;
uint
length
;
bool
use_scientific_notation
=
TRUE
;
bool
use_scientific_notation
=
TRUE
;
use_scientific_notation
=
TRUE
;
use_scientific_notation
=
TRUE
;
if
(
field_length
<
32
&&
fabs
(
nr
)
<
log_10
[
field_length
]
-
1
)
if
(
field_length
<
32
&&
fabs
(
nr
)
<
log_10
[
field_length
]
-
1
)
use_scientific_notation
=
FALSE
;
use_scientific_notation
=
FALSE
;
length
=
(
uint
)
my_sprintf
(
buff
,
(
buff
,
"%-.*g"
,
length
=
(
uint
)
my_sprintf
(
buff
,
(
buff
,
"%-.*g"
,
(
use_scientific_notation
?
(
use_scientific_notation
?
max
(
0
,
(
int
)
field_length
-
5
)
:
max
(
0
,
(
int
)
field_length
-
5
)
:
...
...
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