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
9e8938cb
Commit
9e8938cb
authored
Mar 15, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
merge & simple cleanup
parents
443870e9
cf66e187
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
22 deletions
+22
-22
mysql-test/r/create.result
mysql-test/r/create.result
+8
-8
sql/lock.cc
sql/lock.cc
+1
-1
sql/sql_repl.cc
sql/sql_repl.cc
+0
-2
sql/sql_table.cc
sql/sql_table.cc
+1
-4
strings/strtod.c
strings/strtod.c
+12
-7
No files found.
mysql-test/r/create.result
View file @
9e8938cb
...
...
@@ -459,16 +459,16 @@ drop table t1, t2;
create table t1(cenum enum('a'), cset set('b'));
create table t2(cenum enum('a','a'), cset set('b','b'));
Warnings:
Error
1291 Column 'cenum' has duplicated value 'a' in ENUM
Error
1291 Column 'cset' has duplicated value 'b' in SET
Note
1291 Column 'cenum' has duplicated value 'a' in ENUM
Note
1291 Column 'cset' has duplicated value 'b' in SET
create table t3(cenum enum('a','A','a','c','c'), cset set('b','B','b','d','d'));
Warnings:
Error
1291 Column 'cenum' has duplicated value 'a' in ENUM
Error
1291 Column 'cenum' has duplicated value 'A' in ENUM
Error
1291 Column 'cenum' has duplicated value 'c' in ENUM
Error
1291 Column 'cset' has duplicated value 'b' in SET
Error
1291 Column 'cset' has duplicated value 'B' in SET
Error
1291 Column 'cset' has duplicated value 'd' in SET
Note
1291 Column 'cenum' has duplicated value 'a' in ENUM
Note
1291 Column 'cenum' has duplicated value 'A' in ENUM
Note
1291 Column 'cenum' has duplicated value 'c' in ENUM
Note
1291 Column 'cset' has duplicated value 'b' in SET
Note
1291 Column 'cset' has duplicated value 'B' in SET
Note
1291 Column 'cset' has duplicated value 'd' in SET
drop table t1, t2, t3;
create database test_$1;
use test_$1;
...
...
sql/lock.cc
View file @
9e8938cb
...
...
@@ -495,7 +495,7 @@ int lock_table_name(THD *thd, TABLE_LIST *table_list)
{
TABLE
*
table
;
char
key
[
MAX_DBKEY_LENGTH
];
char
*
db
=
table_list
->
db
?
table_list
->
db
:
(
thd
->
db
?
thd
->
db
:
(
char
*
)
""
)
;
char
*
db
=
table_list
->
db
;
uint
key_length
;
DBUG_ENTER
(
"lock_table_name"
);
safe_mutex_assert_owner
(
&
LOCK_open
);
...
...
sql/sql_repl.cc
View file @
9e8938cb
...
...
@@ -662,8 +662,6 @@ err:
int
start_slave
(
THD
*
thd
,
MASTER_INFO
*
mi
,
bool
net_report
)
{
int
slave_errno
=
0
;
if
(
!
thd
)
thd
=
current_thd
;
int
thread_mask
;
DBUG_ENTER
(
"start_slave"
);
...
...
sql/sql_table.cc
View file @
9e8938cb
...
...
@@ -365,9 +365,6 @@ void check_duplicates_in_interval(const char *set_or_name,
unsigned
int
old_count
=
typelib
->
count
;
const
char
**
old_type_names
=
typelib
->
type_names
;
if
(
typelib
->
count
<=
1
)
return
;
old_count
=
typelib
->
count
;
old_type_names
=
typelib
->
type_names
;
const
char
**
cur_value
=
typelib
->
type_names
;
...
...
@@ -377,7 +374,7 @@ void check_duplicates_in_interval(const char *set_or_name,
typelib
->
count
--
;
if
(
find_type
((
char
*
)
*
cur_value
,
typelib
,
1
))
{
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_
ERROR
,
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_
NOTE
,
ER_DUPLICATED_VALUE_IN_TYPE
,
ER
(
ER_DUPLICATED_VALUE_IN_TYPE
),
name
,
*
cur_value
,
set_or_name
);
...
...
strings/strtod.c
View file @
9e8938cb
...
...
@@ -36,6 +36,11 @@ static double scaler1[] = {
1
.
0
,
10
.
0
,
1e2
,
1e3
,
1e4
,
1e5
,
1e6
,
1e7
,
1e8
,
1e9
};
#ifndef HUGE_VAL
/* Should be +Infinitive */
#define HUGE_VAL DBL_MAX
#endif
double
my_strtod
(
const
char
*
str
,
char
**
end
)
{
double
result
=
0
.
0
;
...
...
@@ -92,10 +97,10 @@ double my_strtod(const char *str, char **end)
}
if
(
exp
>=
1000
)
{
if
(
neg
)
result
=
0
.
0
;
else
overflow
=
1
;
if
(
neg
)
result
=
0
.
0
;
else
overflow
=
1
;
goto
done
;
}
while
(
exp
>=
100
)
...
...
@@ -115,10 +120,10 @@ done:
if
(
end
)
*
end
=
(
char
*
)
str
;
if
(
overflow
||
((
overflow
=
isinf
(
result
))
))
if
(
overflow
||
isinf
(
result
))
{
result
=
DBL_MAX
;
errno
=
EOVERFLOW
;
result
=
DBL_MAX
;
errno
=
EOVERFLOW
;
}
return
negative
?
-
result
:
result
;
...
...
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