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
4ebfa64a
Commit
4ebfa64a
authored
Mar 21, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/dlenev/src/mysql-5.0-merges
parents
3d8ea9d1
35e6a4b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
sql/my_decimal.h
sql/my_decimal.h
+1
-1
strings/decimal.c
strings/decimal.c
+4
-0
No files found.
sql/my_decimal.h
View file @
4ebfa64a
...
...
@@ -85,7 +85,7 @@ class my_decimal :public decimal
{
len
=
DECIMAL_BUFF_LENGTH
;
buf
=
buffer
;
#if !defined(DBUG_OFF)
#if !defined
(HAVE_purify) && !defined
(DBUG_OFF)
/* Set buffer to 'random' value to find wrong buffer usage */
for
(
uint
i
=
0
;
i
<
DECIMAL_BUFF_LENGTH
;
i
++
)
buffer
[
i
]
=
i
;
...
...
strings/decimal.c
View file @
4ebfa64a
...
...
@@ -139,8 +139,12 @@ static const dec1 frac_max[DIG_PER_DEC1-1]={
999900000
,
999990000
,
999999000
,
999999900
,
999999990
};
#ifdef HAVE_purify
#define sanity(d) DBUG_ASSERT((d)->len > 0)
#else
#define sanity(d) DBUG_ASSERT((d)->len >0 && ((d)->buf[0] | \
(d)->buf[(d)->len-1] | 1))
#endif
#define FIX_INTG_FRAC_ERROR(len, intg1, frac1, error) \
do \
...
...
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