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
f5c8240c
Commit
f5c8240c
authored
Dec 01, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-4.1-opt
into mysql.com:/misc/mysql/32707/41-32707
parents
7c0db983
d4a9a422
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
8 deletions
+22
-8
include/mysql_com.h
include/mysql_com.h
+5
-5
sql/mysqld.cc
sql/mysqld.cc
+17
-3
No files found.
include/mysql_com.h
View file @
f5c8240c
...
...
@@ -325,11 +325,11 @@ typedef struct st_udf_args
typedef
struct
st_udf_init
{
my_bool
maybe_null
;
/* 1 if function can return NULL */
unsigned
int
decimals
;
/* for real functions */
unsigned
long
max_length
;
/* For string functions */
char
*
ptr
;
/* free pointer for function data */
my_bool
const_item
;
/* 0 if result is independent of arguments
*/
my_bool
maybe_null
;
/* 1 if function can return NULL */
unsigned
int
decimals
;
/* for real functions */
unsigned
long
max_length
;
/* For string functions */
char
*
ptr
;
/* free pointer for function data */
my_bool
const_item
;
/* 1 if function always returns the same value
*/
}
UDF_INIT
;
/* Constants when using compression */
...
...
sql/mysqld.cc
View file @
f5c8240c
...
...
@@ -193,7 +193,7 @@ typedef fp_except fp_except_t;
this on freebsd
*/
inline
void
reset_floating_point_exceptions
()
inline
void
set_proper_floating_point_mode
()
{
/* Don't fall for overflow, underflow,divide-by-zero or loss of precision */
#if defined(__i386__)
...
...
@@ -204,8 +204,22 @@ inline void reset_floating_point_exceptions()
FP_X_IMP
));
#endif
}
#elif defined(__sgi)
/* for IRIX to use set_fpc_csr() */
#include <sys/fpu.h>
inline
void
set_proper_floating_point_mode
()
{
/* Enable denormalized DOUBLE values support for IRIX */
{
union
fpc_csr
n
;
n
.
fc_word
=
get_fpc_csr
();
n
.
fc_struct
.
flush
=
0
;
set_fpc_csr
(
n
.
fc_word
);
}
}
#else
#define
reset_floating_point_exceptions
()
#define
set_proper_floating_point_mode
()
#endif
/* __FreeBSD__ && HAVE_IEEEFP_H */
}
/* cplusplus */
...
...
@@ -2876,7 +2890,7 @@ static int init_server_components()
query_cache_init
();
query_cache_resize
(
query_cache_size
);
randominit
(
&
sql_rand
,(
ulong
)
start_time
,(
ulong
)
start_time
/
2
);
reset_floating_point_exceptions
();
set_proper_floating_point_mode
();
init_thr_lock
();
#ifdef HAVE_REPLICATION
init_slave_list
();
...
...
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