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
08f3ba0e
Commit
08f3ba0e
authored
Aug 26, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge
parent
5633414c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
23 deletions
+24
-23
sql/item_row.cc
sql/item_row.cc
+2
-1
sql/log.cc
sql/log.cc
+19
-19
sql/sql_base.cc
sql/sql_base.cc
+2
-2
tests/client_test.c
tests/client_test.c
+1
-1
No files found.
sql/item_row.cc
View file @
08f3ba0e
...
@@ -66,7 +66,8 @@ bool Item_row::fix_fields(THD *thd, TABLE_LIST *tabl, Item **ref)
...
@@ -66,7 +66,8 @@ bool Item_row::fix_fields(THD *thd, TABLE_LIST *tabl, Item **ref)
// we can't assign 'item' before, because fix_fields() can change arg
// we can't assign 'item' before, because fix_fields() can change arg
Item
*
item
=
*
arg
;
Item
*
item
=
*
arg
;
used_tables_cache
|=
item
->
used_tables
();
used_tables_cache
|=
item
->
used_tables
();
if
(
const_item_cache
&=
item
->
const_item
()
&&
!
with_null
)
const_item_cache
&=
item
->
const_item
()
&&
!
with_null
;
if
(
const_item_cache
)
{
{
if
(
item
->
cols
()
>
1
)
if
(
item
->
cols
()
>
1
)
with_null
|=
item
->
null_inside
();
with_null
|=
item
->
null_inside
();
...
...
sql/log.cc
View file @
08f3ba0e
/* Copyright (C) 2000-2003 MySQL AB
/* Copyright (C) 2000-2003 MySQL AB
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
(at your option) any later version.
This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
...
@@ -43,31 +43,31 @@ static bool test_if_number(const char *str,
...
@@ -43,31 +43,31 @@ static bool test_if_number(const char *str,
#ifdef __NT__
#ifdef __NT__
static
int
eventSource
=
0
;
static
int
eventSource
=
0
;
void
setupWindowsEventSource
()
void
setupWindowsEventSource
()
{
{
if
(
eventSource
)
return
;
if
(
eventSource
)
return
;
eventSource
=
1
;
eventSource
=
1
;
HKEY
hRegKey
=
NULL
;
HKEY
hRegKey
=
NULL
;
DWORD
dwError
=
0
;
DWORD
dwError
=
0
;
TCHAR
szPath
[
MAX_PATH
];
TCHAR
szPath
[
MAX_PATH
];
// Create the event source registry key
// Create the event source registry key
dwError
=
RegCreateKey
(
HKEY_LOCAL_MACHINE
,
dwError
=
RegCreateKey
(
HKEY_LOCAL_MACHINE
,
"SYSTEM
\\
CurrentControlSet
\\
Services
\\
EventLog
\\
Application
\\
MySQL"
,
"SYSTEM
\\
CurrentControlSet
\\
Services
\\
EventLog
\\
Application
\\
MySQL"
,
&
hRegKey
);
&
hRegKey
);
// Name of the PE module that contains the message resource
// Name of the PE module that contains the message resource
GetModuleFileName
(
NULL
,
szPath
,
MAX_PATH
);
GetModuleFileName
(
NULL
,
szPath
,
MAX_PATH
);
// Register EventMessageFile
// Register EventMessageFile
dwError
=
RegSetValueEx
(
hRegKey
,
"EventMessageFile"
,
0
,
REG_EXPAND_SZ
,
dwError
=
RegSetValueEx
(
hRegKey
,
"EventMessageFile"
,
0
,
REG_EXPAND_SZ
,
(
PBYTE
)
szPath
,
strlen
(
szPath
)
+
1
);
(
PBYTE
)
szPath
,
strlen
(
szPath
)
+
1
);
// Register supported event types
// Register supported event types
DWORD
dwTypes
=
EVENTLOG_ERROR_TYPE
|
EVENTLOG_WARNING_TYPE
|
EVENTLOG_INFORMATION_TYPE
;
DWORD
dwTypes
=
EVENTLOG_ERROR_TYPE
|
EVENTLOG_WARNING_TYPE
|
EVENTLOG_INFORMATION_TYPE
;
dwError
=
RegSetValueEx
(
hRegKey
,
"TypesSupported"
,
0
,
REG_DWORD
,
dwError
=
RegSetValueEx
(
hRegKey
,
"TypesSupported"
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
dwTypes
,
sizeof
dwTypes
);
(
LPBYTE
)
&
dwTypes
,
sizeof
dwTypes
);
RegCloseKey
(
hRegKey
);
RegCloseKey
(
hRegKey
);
...
@@ -2200,6 +2200,8 @@ void MYSQL_LOG::report_pos_in_innodb()
...
@@ -2200,6 +2200,8 @@ void MYSQL_LOG::report_pos_in_innodb()
my_b_tell
(
&
log_file
));
my_b_tell
(
&
log_file
));
}
}
#endif
#endif
DBUG_VOID_RETURN
;
}
#ifdef __NT__
#ifdef __NT__
void
print_buffer_to_nt_eventlog
(
enum
loglevel
level
,
char
*
buff
,
int
buffLen
)
void
print_buffer_to_nt_eventlog
(
enum
loglevel
level
,
char
*
buff
,
int
buffLen
)
...
@@ -2241,7 +2243,6 @@ void print_buffer_to_nt_eventlog(enum loglevel level, char *buff, int buffLen)
...
@@ -2241,7 +2243,6 @@ void print_buffer_to_nt_eventlog(enum loglevel level, char *buff, int buffLen)
if
(
buffptr
!=
buff
)
if
(
buffptr
!=
buff
)
delete
[]
buffptr
;
delete
[]
buffptr
;
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
#endif
#endif
...
@@ -2253,7 +2254,7 @@ void print_buffer_to_nt_eventlog(enum loglevel level, char *buff, int buffLen)
...
@@ -2253,7 +2254,7 @@ void print_buffer_to_nt_eventlog(enum loglevel level, char *buff, int buffLen)
vprint_msg_to_log()
vprint_msg_to_log()
event_type Type of event to write (Error, Warning, or Info)
event_type Type of event to write (Error, Warning, or Info)
format Printf style format of message
format Printf style format of message
args va_list list of arguments for the message
args va_list list of arguments for the message
NOTE
NOTE
...
@@ -2267,7 +2268,6 @@ void print_buffer_to_nt_eventlog(enum loglevel level, char *buff, int buffLen)
...
@@ -2267,7 +2268,6 @@ void print_buffer_to_nt_eventlog(enum loglevel level, char *buff, int buffLen)
void
vprint_msg_to_log
(
enum
loglevel
level
,
const
char
*
format
,
va_list
args
)
void
vprint_msg_to_log
(
enum
loglevel
level
,
const
char
*
format
,
va_list
args
)
{
{
char
buff
[
1024
];
char
buff
[
1024
];
DBUG_ENTER
(
"vprint_msg_to_log"
);
DBUG_ENTER
(
"vprint_msg_to_log"
);
my_vsnprintf
(
buff
,
sizeof
(
buff
)
-
5
,
format
,
args
);
my_vsnprintf
(
buff
,
sizeof
(
buff
)
-
5
,
format
,
args
);
...
@@ -2286,7 +2286,7 @@ void vprint_msg_to_log(enum loglevel level, const char *format, va_list args)
...
@@ -2286,7 +2286,7 @@ void vprint_msg_to_log(enum loglevel level, const char *format, va_list args)
}
}
void
sql_print_error
(
const
char
*
format
,
...)
void
sql_print_error
(
const
char
*
format
,
...)
{
{
DBUG_ENTER
(
"sql_print_error"
);
DBUG_ENTER
(
"sql_print_error"
);
...
@@ -2298,7 +2298,7 @@ void sql_print_error(const char *format, ...)
...
@@ -2298,7 +2298,7 @@ void sql_print_error(const char *format, ...)
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
void
sql_print_warning
(
const
char
*
format
,
...)
void
sql_print_warning
(
const
char
*
format
,
...)
{
{
DBUG_ENTER
(
"sql_print_warning"
);
DBUG_ENTER
(
"sql_print_warning"
);
...
@@ -2310,7 +2310,7 @@ void sql_print_warning(const char *format, ...)
...
@@ -2310,7 +2310,7 @@ void sql_print_warning(const char *format, ...)
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
void
sql_print_information
(
const
char
*
format
,
...)
void
sql_print_information
(
const
char
*
format
,
...)
{
{
DBUG_ENTER
(
"sql_print_information"
);
DBUG_ENTER
(
"sql_print_information"
);
...
...
sql/sql_base.cc
View file @
08f3ba0e
...
@@ -2449,8 +2449,8 @@ insert_fields(THD *thd,TABLE_LIST *tables, const char *db_name,
...
@@ -2449,8 +2449,8 @@ insert_fields(THD *thd,TABLE_LIST *tables, const char *db_name,
if
(
db_name
&&
lower_case_table_names
)
if
(
db_name
&&
lower_case_table_names
)
{
{
/* convert database to lower case for comparison */
/* convert database to lower case for comparison */
strmake
(
name_buff
,
db_name
,
sizeof
(
name_buff
)
-
1
);
strmake
(
name_buff
,
db_name
,
sizeof
(
name_buff
)
-
1
);
casedn_str
(
name_buff
);
my_casedn_str
(
system_charset_info
,
name_buff
);
db_name
=
name_buff
;
db_name
=
name_buff
;
}
}
...
...
tests/client_test.c
View file @
08f3ba0e
...
@@ -10142,7 +10142,7 @@ static void get_options(int argc, char **argv)
...
@@ -10142,7 +10142,7 @@ static void get_options(int argc, char **argv)
int
ho_error
;
int
ho_error
;
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
client_test_long_options
,
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
client_test_long_options
,
get_one_option
)))
get_one_option
,
0
)))
exit
(
ho_error
);
exit
(
ho_error
);
if
(
tty_password
)
if
(
tty_password
)
...
...
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