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
779c33a5
Commit
779c33a5
authored
Jan 06, 2005
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed comparation with string constant on some platform (BUG#7651)
parent
421738e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
client/mysqldump.c
client/mysqldump.c
+10
-2
No files found.
client/mysqldump.c
View file @
779c33a5
...
@@ -106,7 +106,14 @@ FILE *md_result_file;
...
@@ -106,7 +106,14 @@ FILE *md_result_file;
static
char
*
shared_memory_base_name
=
0
;
static
char
*
shared_memory_base_name
=
0
;
#endif
#endif
static
uint
opt_protocol
=
0
;
static
uint
opt_protocol
=
0
;
static
char
*
default_charset
=
(
char
*
)
MYSQL_UNIVERSAL_CLIENT_CHARSET
;
/*
Constant for detection default value of default_charset (if
default_charset equal to mysql_universal_client_charset, then it is
default value which assigned in very beginning on main())
*/
const
static
char
*
mysql_universal_client_charset
=
MYSQL_UNIVERSAL_CLIENT_CHARSET
;
static
char
*
default_charset
;
static
CHARSET_INFO
*
charset_info
=
&
my_charset_latin1
;
static
CHARSET_INFO
*
charset_info
=
&
my_charset_latin1
;
const
char
*
default_dbug_option
=
"d:t:o,/tmp/mysqldump.trace"
;
const
char
*
default_dbug_option
=
"d:t:o,/tmp/mysqldump.trace"
;
...
@@ -678,7 +685,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
...
@@ -678,7 +685,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
Set charset to the default compiled value if it hasn't
Set charset to the default compiled value if it hasn't
been reset yet by --default-character-set=xxx.
been reset yet by --default-character-set=xxx.
*/
*/
if
(
default_charset
==
(
char
*
)
MYSQL_UNIVERSAL_CLIENT_CHARSET
)
if
(
default_charset
==
mysql_universal_client_charset
)
default_charset
=
(
char
*
)
MYSQL_DEFAULT_CHARSET_NAME
;
default_charset
=
(
char
*
)
MYSQL_DEFAULT_CHARSET_NAME
;
break
;
break
;
}
}
...
@@ -2403,6 +2410,7 @@ cleanup:
...
@@ -2403,6 +2410,7 @@ cleanup:
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
compatible_mode_normal_str
[
0
]
=
0
;
compatible_mode_normal_str
[
0
]
=
0
;
default_charset
=
(
char
*
)
mysql_universal_client_charset
;
MY_INIT
(
argv
[
0
]);
MY_INIT
(
argv
[
0
]);
if
(
get_options
(
&
argc
,
&
argv
))
if
(
get_options
(
&
argc
,
&
argv
))
...
...
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