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
c4a2d3d5
Commit
c4a2d3d5
authored
May 22, 2002
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fixes
Fixed problem with --password in mysql
parent
24b1874a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
+13
-15
client/mysql.cc
client/mysql.cc
+10
-13
mysql-test/r/type_decimal.result
mysql-test/r/type_decimal.result
+1
-1
mysql-test/t/type_decimal.test
mysql-test/t/type_decimal.test
+2
-1
No files found.
client/mysql.cc
View file @
c4a2d3d5
...
@@ -664,9 +664,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -664,9 +664,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break
;
break
;
case
'p'
:
case
'p'
:
if
(
argument
==
disabled_my_option
)
if
(
argument
==
disabled_my_option
)
opt_password
=
(
char
*
)
""
;
argument
=
(
char
*
)
""
;
// Don't require password
else
{
if
(
argument
)
if
(
argument
)
{
{
char
*
start
=
argument
;
char
*
start
=
argument
;
...
@@ -678,7 +676,6 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -678,7 +676,6 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
}
}
else
else
tty_password
=
1
;
tty_password
=
1
;
}
break
;
break
;
case
'#'
:
case
'#'
:
DBUG_PUSH
(
argument
?
argument
:
default_dbug_option
);
DBUG_PUSH
(
argument
?
argument
:
default_dbug_option
);
...
...
mysql-test/r/type_decimal.result
View file @
c4a2d3d5
...
@@ -232,7 +232,7 @@ a
...
@@ -232,7 +232,7 @@ a
99999999.99
99999999.99
drop table t1;
drop table t1;
create table t1 (a decimal(10,2));
create table t1 (a decimal(10,2));
insert into t1 values (0.0),(
-0.0
),(+0.0),(01.0),(+01.0),(-01.0);
insert into t1 values (0.0),(
"-0.0"
),(+0.0),(01.0),(+01.0),(-01.0);
insert into t1 values (-.1),(+.1),(.1);
insert into t1 values (-.1),(+.1),(.1);
insert into t1 values (00000000000001),(+0000000000001),(-0000000000001);
insert into t1 values (00000000000001),(+0000000000001),(-0000000000001);
insert into t1 values (+111111111.11),(111111111.11),(-11111111.11);
insert into t1 values (+111111111.11),(111111111.11),(-11111111.11);
...
...
mysql-test/t/type_decimal.test
View file @
c4a2d3d5
...
@@ -183,7 +183,8 @@ drop table t1;
...
@@ -183,7 +183,8 @@ drop table t1;
create
table
t1
(
a
decimal
(
10
,
2
));
create
table
t1
(
a
decimal
(
10
,
2
));
insert
into
t1
values
(
0.0
),(
-
0.0
),(
+
0.0
),(
01.0
),(
+
01.0
),(
-
01.0
);
# The -0.0 needs to be typed as not all platforms supports this
insert
into
t1
values
(
0.0
),(
"-0.0"
),(
+
0.0
),(
01.0
),(
+
01.0
),(
-
01.0
);
insert
into
t1
values
(
-.
1
),(
+.
1
),(
.
1
);
insert
into
t1
values
(
-.
1
),(
+.
1
),(
.
1
);
insert
into
t1
values
(
00000000000001
),(
+
0000000000001
),(
-
0000000000001
);
insert
into
t1
values
(
00000000000001
),(
+
0000000000001
),(
-
0000000000001
);
insert
into
t1
values
(
+
111111111.11
),(
111111111.11
),(
-
11111111.11
);
insert
into
t1
values
(
+
111111111.11
),(
111111111.11
),(
-
11111111.11
);
...
...
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