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
3c3d0bbd
Commit
3c3d0bbd
authored
Jun 28, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow floats of type 1.0e1
parent
96aac3f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Docs/manual.texi
Docs/manual.texi
+2
-0
mysql-test/t/type_float.test
mysql-test/t/type_float.test
+2
-1
sql/sql_lex.cc
sql/sql_lex.cc
+3
-6
No files found.
Docs/manual.texi
View file @
3c3d0bbd
...
@@ -46461,6 +46461,8 @@ not yet 100% confident in this code.
...
@@ -46461,6 +46461,8 @@ not yet 100% confident in this code.
@appendixsubsec Changes in release 3.23.40
@appendixsubsec Changes in release 3.23.40
@itemize @bullet
@itemize @bullet
@item
@item
Fixed parser to allow floats of type @code{1.0e1} (no sign after @code{e}).
@item
Option @code{--force} to @code{myisamchk} now also updates states.
Option @code{--force} to @code{myisamchk} now also updates states.
@item
@item
Added option @code{--warnings} to @code{mysqld}. Now @code{mysqld}
Added option @code{--warnings} to @code{mysqld}. Now @code{mysqld}
mysql-test/t/type_float.test
View file @
3c3d0bbd
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
# Numeric floating point.
# Numeric floating point.
SELECT
10
,
10.0
,
10.
,
.
1
e
+
2
,
100.0e-1
;
SELECT
10
,
10.0
,
10.
,
.
1
e
+
2
,
100.0e-1
;
select
6
e
-
05
,
-
6
e
-
05
,
--
6
e
-
05
,
-
6
e
-
05
+
1.000000
;
SELECT
6
e
-
05
,
-
6
e
-
05
,
--
6
e
-
05
,
-
6
e
-
05
+
1.000000
;
SELECT
1
e1
,
1.e1
,
1.0e1
,
1
e
+
1
,
1.e+1
,
1.0e+1
,
1
e
-
1
,
1.e-1
,
1.0e-1
;
drop
table
if
exists
t1
;
drop
table
if
exists
t1
;
create
table
t1
(
f1
float
(
24
),
f2
float
(
52
));
create
table
t1
(
f1
float
(
24
),
f2
float
(
52
));
...
...
sql/sql_lex.cc
View file @
3c3d0bbd
...
@@ -650,12 +650,9 @@ int yylex(void *arg)
...
@@ -650,12 +650,9 @@ int yylex(void *arg)
if
(
c
==
'e'
||
c
==
'E'
)
if
(
c
==
'e'
||
c
==
'E'
)
{
{
c
=
yyGet
();
c
=
yyGet
();
if
(
c
!=
'-'
&&
c
!=
'+'
&&
!
isdigit
(
c
))
if
(
c
==
'-'
||
c
==
'+'
)
{
// No exp sig found
c
=
yyGet
();
// Skipp sign
state
=
STATE_CHAR
;
if
(
!
isdigit
(
c
))
break
;
}
if
(
!
isdigit
(
yyGet
()))
{
// No digit after sign
{
// No digit after sign
state
=
STATE_CHAR
;
state
=
STATE_CHAR
;
break
;
break
;
...
...
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