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
923422c2
Commit
923422c2
authored
Dec 13, 2003
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/work/mysql-4.0
parents
7443d9ca
b5f0d76b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
client/mysql.cc
client/mysql.cc
+1
-1
mysql-test/r/type_decimal.result
mysql-test/r/type_decimal.result
+6
-0
mysql-test/t/type_decimal.test
mysql-test/t/type_decimal.test
+6
-0
sql/field.cc
sql/field.cc
+2
-2
No files found.
client/mysql.cc
View file @
923422c2
...
...
@@ -574,7 +574,7 @@ static struct my_option my_long_options[] =
0
,
1
},
{
"max_allowed_packet"
,
OPT_MAX_ALLOWED_PACKET
,
""
,
(
gptr
*
)
&
max_allowed_packet
,
(
gptr
*
)
&
max_allowed_packet
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
16
*
1024L
*
1024L
,
4096
,
512
*
1024L
*
1024L
,
MALLOC_OVERHEAD
,
REQUIRED_ARG
,
16
*
1024L
*
1024L
,
4096
,
2
*
1024
*
1024L
*
1024L
,
MALLOC_OVERHEAD
,
1024
,
0
},
{
"net_buffer_length"
,
OPT_NET_BUFFER_LENGTH
,
""
,
(
gptr
*
)
&
net_buffer_length
,
(
gptr
*
)
&
net_buffer_length
,
0
,
GET_ULONG
,
...
...
mysql-test/r/type_decimal.result
View file @
923422c2
...
...
@@ -363,3 +363,9 @@ CREATE TABLE t1 (a_dec DECIMAL(-2,1));
Too big column length for column 'a_dec' (max = 255). Use BLOB instead
CREATE TABLE t1 (a_dec DECIMAL(-1,1));
Too big column length for column 'a_dec' (max = 255). Use BLOB instead
create table t1(a decimal(10,4));
insert into t1 values ("+0000100000000");
select * from t1;
a
9999999.9999
drop table t1;
mysql-test/t/type_decimal.test
View file @
923422c2
...
...
@@ -240,3 +240,9 @@ CREATE TABLE t1 (a_dec DECIMAL(-1,0));
CREATE
TABLE
t1
(
a_dec
DECIMAL
(
-
2
,
1
));
--
error
1074
CREATE
TABLE
t1
(
a_dec
DECIMAL
(
-
1
,
1
));
# Zero prepend overflow bug
create
table
t1
(
a
decimal
(
10
,
4
));
insert
into
t1
values
(
"+0000100000000"
);
select
*
from
t1
;
drop
table
t1
;
sql/field.cc
View file @
923422c2
...
...
@@ -632,7 +632,7 @@ void Field_decimal::store(const char *from,uint len)
if
(
zerofill
)
{
left_wall
=
to
-
1
;
while
(
pos
!=
left_wall
)
// Fill with zeros
while
(
pos
>
left_wall
)
// Fill with zeros
*
pos
--=
'0'
;
}
else
...
...
@@ -640,7 +640,7 @@ void Field_decimal::store(const char *from,uint len)
left_wall
=
to
+
(
sign_char
!=
0
)
-
1
;
if
(
!
expo_sign_char
)
// If exponent was specified, ignore prezeros
{
for
(;
pos
!=
left_wall
&&
pre_zeros_from
!=
pre_zeros_end
;
for
(;
pos
>
left_wall
&&
pre_zeros_from
!=
pre_zeros_end
;
pre_zeros_from
++
)
*
pos
--=
'0'
;
}
...
...
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