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
95d04277
Commit
95d04277
authored
Jun 12, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/data0/bk/mysql-5.0
into bk-internal.mysql.com:/data0/bk/mysql-5.0-kt
parents
3f19b05b
3253e7b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
mysys/my_init.c
mysys/my_init.c
+23
-1
No files found.
mysys/my_init.c
View file @
95d04277
...
@@ -245,6 +245,22 @@ void setEnvString(char *ret, const char *name, const char *value)
...
@@ -245,6 +245,22 @@ void setEnvString(char *ret, const char *name, const char *value)
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
/*
my_paramter_handler
Invalid paramter handler we will use instead of the one "baked" into the CRT
for MSC v8. This one just prints out what invalid parameter was encountered.
By providing this routine, routines like lseek will return -1 when we expect them
to instead of crash.
*/
void
my_parameter_handler
(
const
wchar_t
*
expression
,
const
wchar_t
*
function
,
const
wchar_t
*
file
,
unsigned
int
line
,
uintptr_t
pReserved
)
{
DBUG_PRINT
(
"my"
,(
"Expression: %s function: %s file: %s, line: %d"
,
expression
,
function
,
file
,
line
));
}
static
void
my_win_init
(
void
)
static
void
my_win_init
(
void
)
{
{
HKEY
hSoftMysql
;
HKEY
hSoftMysql
;
...
@@ -262,12 +278,18 @@ static void my_win_init(void)
...
@@ -262,12 +278,18 @@ static void my_win_init(void)
setlocale
(
LC_CTYPE
,
""
);
/* To get right sortorder */
setlocale
(
LC_CTYPE
,
""
);
/* To get right sortorder */
#if defined(_MSC_VER) && (_MSC_VER < 1300)
#if defined(_MSC_VER)
#if _MSC_VER < 1300
/*
/*
Clear the OS system variable TZ and avoid the 100% CPU usage
Clear the OS system variable TZ and avoid the 100% CPU usage
Only for old versions of Visual C++
Only for old versions of Visual C++
*/
*/
_putenv
(
"TZ="
);
_putenv
(
"TZ="
);
#endif
#if _MSC_VER >= 1400
/* this is required to make crt functions return -1 appropriately */
_set_invalid_parameter_handler
(
my_parameter_handler
);
#endif
#endif
#endif
_tzset
();
_tzset
();
...
...
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