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
40d4c07c
Commit
40d4c07c
authored
Jun 02, 2010
by
Alexey Kopytov
Browse files
Options
Browse Files
Download
Plain Diff
Automerge.
parents
6bd49855
f3a83073
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
3 deletions
+65
-3
configure.in
configure.in
+2
-2
mysql-test/r/explain.result
mysql-test/r/explain.result
+13
-0
mysql-test/t/explain.test
mysql-test/t/explain.test
+15
-0
sql/mysqld.cc
sql/mysqld.cc
+35
-1
No files found.
configure.in
View file @
40d4c07c
...
@@ -838,8 +838,8 @@ AC_TYPE_SIZE_T
...
@@ -838,8 +838,8 @@ AC_TYPE_SIZE_T
AC_HEADER_DIRENT
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS
(
fcntl.h fenv.h float.h floatingpoint.h
ieeefp.h limits
.h
\
AC_CHECK_HEADERS
(
fcntl.h fenv.h float.h floatingpoint.h
fpu_control
.h
\
memory.h pwd.h
select
.h
\
ieeefp.h limits.h
memory.h pwd.h
select
.h
\
stdlib.h stddef.h
\
stdlib.h stddef.h
\
strings.h string.h synch.h sys/mman.h sys/socket.h netinet/in.h arpa/inet.h
\
strings.h string.h synch.h sys/mman.h sys/socket.h netinet/in.h arpa/inet.h
\
sys/timeb.h sys/types.h sys/un.h sys/vadvise.h sys/wait.h term.h
\
sys/timeb.h sys/types.h sys/un.h sys/vadvise.h sys/wait.h term.h
\
...
...
mysql-test/r/explain.result
View file @
40d4c07c
...
@@ -238,4 +238,17 @@ id select_type table type possible_keys key key_len ref rows Extra
...
@@ -238,4 +238,17 @@ id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
DROP TABLE t1, t2;
DROP TABLE t1, t2;
#
# Bug #48573: difference of index selection between rpm binary and
# .tar.gz, windows vs linux..
#
CREATE TABLE t1(c1 INT, c2 INT, c4 INT, c5 INT, KEY(c2, c5), KEY(c2, c4, c5));
INSERT INTO t1 VALUES(4, 1, 1, 1);
INSERT INTO t1 VALUES(3, 1, 1, 1);
INSERT INTO t1 VALUES(2, 1, 1, 1);
INSERT INTO t1 VALUES(1, 1, 1, 1);
EXPLAIN SELECT c1 FROM t1 WHERE c2 = 1 AND c4 = 1 AND c5 = 1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref c2,c2_2 c2 10 const,const 3 Using where
DROP TABLE t1;
End of 5.1 tests.
End of 5.1 tests.
mysql-test/t/explain.test
View file @
40d4c07c
...
@@ -213,4 +213,19 @@ EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT 1 FROM t1 t JOIN t2 WHERE b <= 1 AND
...
@@ -213,4 +213,19 @@ EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT 1 FROM t1 t JOIN t2 WHERE b <= 1 AND
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# Bug #48573: difference of index selection between rpm binary and
--
echo
# .tar.gz, windows vs linux..
--
echo
#
CREATE
TABLE
t1
(
c1
INT
,
c2
INT
,
c4
INT
,
c5
INT
,
KEY
(
c2
,
c5
),
KEY
(
c2
,
c4
,
c5
));
INSERT
INTO
t1
VALUES
(
4
,
1
,
1
,
1
);
INSERT
INTO
t1
VALUES
(
3
,
1
,
1
,
1
);
INSERT
INTO
t1
VALUES
(
2
,
1
,
1
,
1
);
INSERT
INTO
t1
VALUES
(
1
,
1
,
1
,
1
);
EXPLAIN
SELECT
c1
FROM
t1
WHERE
c2
=
1
AND
c4
=
1
AND
c5
=
1
;
DROP
TABLE
t1
;
--
echo
End
of
5.1
tests
.
--
echo
End
of
5.1
tests
.
sql/mysqld.cc
View file @
40d4c07c
...
@@ -183,6 +183,21 @@ typedef fp_except fp_except_t;
...
@@ -183,6 +183,21 @@ typedef fp_except fp_except_t;
/* for IRIX to use set_fpc_csr() */
/* for IRIX to use set_fpc_csr() */
#include <sys/fpu.h>
#include <sys/fpu.h>
#endif
#endif
#ifdef HAVE_FPU_CONTROL_H
#include <fpu_control.h>
#endif
#if defined(__i386__) && !defined(HAVE_FPU_CONTROL_H)
# define fpu_control_t unsigned int
# define _FPU_EXTENDED 0x300
# define _FPU_DOUBLE 0x200
# ifdef __GNUC__
# define _FPU_GETCW(cw) __asm__ __volatile__("fnstcw %0" : "=m" (*&cw))
# define _FPU_SETCW(cw) __asm__ __volatile__("fldcw %0" : : "m" (*&cw))
# else
# define _FPU_GETCW(cw) (cw= 0)
# define _FPU_SETCW(cw)
# endif
#endif
inline
void
setup_fpu
()
inline
void
setup_fpu
()
{
{
...
@@ -204,7 +219,26 @@ inline void setup_fpu()
...
@@ -204,7 +219,26 @@ inline void setup_fpu()
/* Set FPU rounding mode to "round-to-nearest" */
/* Set FPU rounding mode to "round-to-nearest" */
fesetround
(
FE_TONEAREST
);
fesetround
(
FE_TONEAREST
);
#endif
/* HAVE_FESETROUND */
#endif
/* HAVE_FESETROUND */
/*
x86 (32-bit) requires FPU precision to be explicitly set to 64 bit
(double precision) for portable results of floating point operations.
However, there is no need to do so if compiler is using SSE2 for floating
point, double values will be stored and processed in 64 bits anyway.
*/
#if defined(__i386__) && !defined(__SSE2_MATH__)
#if defined(_WIN32)
#if !defined(_WIN64)
_control87
(
_PC_53
,
MCW_PC
);
#endif
/* !_WIN64 */
#else
/* !_WIN32 */
fpu_control_t
cw
;
_FPU_GETCW
(
cw
);
cw
=
(
cw
&
~
_FPU_EXTENDED
)
|
_FPU_DOUBLE
;
_FPU_SETCW
(
cw
);
#endif
/* _WIN32 && */
#endif
/* __i386__ */
#if defined(__sgi) && defined(HAVE_SYS_FPU_H)
#if defined(__sgi) && defined(HAVE_SYS_FPU_H)
/* Enable denormalized DOUBLE values support for IRIX */
/* Enable denormalized DOUBLE values support for IRIX */
union
fpc_csr
n
;
union
fpc_csr
n
;
...
...
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