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
c0bc346b
Commit
c0bc346b
authored
Aug 04, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pzaitsev@work.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/pz/mysql/mysql-4.0-root
parents
0ddb9137
1ac8636d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
mysql-test/r/type_decimal.result
mysql-test/r/type_decimal.result
+6
-6
sql/field.cc
sql/field.cc
+9
-2
sql/sql_parse.cc
sql/sql_parse.cc
+2
-0
No files found.
mysql-test/r/type_decimal.result
View file @
c0bc346b
...
@@ -199,15 +199,15 @@ select * from t1;
...
@@ -199,15 +199,15 @@ select * from t1;
a
a
0.00
0.00
0.00
0.00
0.00
+0.00
01.00
01.00
01.00
+01.00
0.00
0.00
0.00
0.00
+0.10
0.10
0.10
0.10
00000001.00
00000001.00
00000001.00
+0000001.00
0.00
0.00
99999999.99
99999999.99
99999999.99
99999999.99
...
@@ -316,9 +316,9 @@ select * from t1;
...
@@ -316,9 +316,9 @@ select * from t1;
a
a
0
0
0
0
1
+
1
01
01
0
000000001
+
000000001
1234567890
1234567890
9999999999
9999999999
drop table t1;
drop table t1;
...
...
sql/field.cc
View file @
c0bc346b
...
@@ -431,8 +431,9 @@ void Field_decimal::store(const char *from,uint len)
...
@@ -431,8 +431,9 @@ void Field_decimal::store(const char *from,uint len)
{
{
sign_char
=
*
from
++
;
sign_char
=
*
from
++
;
/*
/*
Unsigned can't have any flag. So we'll just drop "+"
We allow "+" for unsigned decimal unless defined different
and will overflow on "-"
Both options allowed as one may wish not to have "+" for unsigned numbers
because of data processing issues
*/
*/
if
(
unsigned_flag
)
if
(
unsigned_flag
)
{
{
...
@@ -441,8 +442,14 @@ void Field_decimal::store(const char *from,uint len)
...
@@ -441,8 +442,14 @@ void Field_decimal::store(const char *from,uint len)
Field_decimal
::
overflow
(
1
);
Field_decimal
::
overflow
(
1
);
return
;
return
;
}
}
/*
Defining this will not store "+" for unsigned decimal type even if
it is passed in numeric string. This will make some tests to fail
*/
#ifdef DONT_ALLOW_UNSIGNED_PLUS
else
else
sign_char
=
0
;
sign_char
=
0
;
#endif
}
}
}
}
...
...
sql/sql_parse.cc
View file @
c0bc346b
...
@@ -708,6 +708,8 @@ pthread_handler_decl(handle_bootstrap,arg)
...
@@ -708,6 +708,8 @@ pthread_handler_decl(handle_bootstrap,arg)
sigset_t
set
;
sigset_t
set
;
VOID
(
sigemptyset
(
&
set
));
// Get mask in use
VOID
(
sigemptyset
(
&
set
));
// Get mask in use
VOID
(
pthread_sigmask
(
SIG_UNBLOCK
,
&
set
,
&
thd
->
block_signals
));
VOID
(
pthread_sigmask
(
SIG_UNBLOCK
,
&
set
,
&
thd
->
block_signals
));
#endif
#endif
if
((
ulong
)
thd
->
variables
.
max_join_size
==
(
ulong
)
HA_POS_ERROR
)
if
((
ulong
)
thd
->
variables
.
max_join_size
==
(
ulong
)
HA_POS_ERROR
)
...
...
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