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
cfd9bf3c
Commit
cfd9bf3c
authored
Nov 06, 2001
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work.mysql.com:/home/bk/mysql-4.0 into black.box:/u/home/tim/my/4
Docs/manual.texi: Auto merged
parents
5f72364f
ded5902f
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
156 additions
and
153 deletions
+156
-153
Docs/manual.texi
Docs/manual.texi
+146
-143
libmysql/libmysql.c
libmysql/libmysql.c
+1
-1
mysys/charset.c
mysys/charset.c
+9
-9
No files found.
Docs/manual.texi
View file @
cfd9bf3c
This diff is collapsed.
Click to expand it.
libmysql/libmysql.c
View file @
cfd9bf3c
...
@@ -1712,7 +1712,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
...
@@ -1712,7 +1712,7 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
charset_name
=
charset_name_buff
;
charset_name
=
charset_name_buff
;
sprintf
(
charset_name
,
"%d"
,
mysql
->
server_language
);
/* In case of errors */
sprintf
(
charset_name
,
"%d"
,
mysql
->
server_language
);
/* In case of errors */
if
(
!
(
mysql
->
charset
=
if
(
!
(
mysql
->
charset
=
get_charset
((
uint8
)
mysql
->
server_language
,
MYF
(
MY_WME
))))
get_charset
((
uint8
)
mysql
->
server_language
,
MYF
(
0
))))
mysql
->
charset
=
default_charset_info
;
/* shouldn't be fatal */
mysql
->
charset
=
default_charset_info
;
/* shouldn't be fatal */
}
}
...
...
mysys/charset.c
View file @
cfd9bf3c
...
@@ -296,7 +296,7 @@ static CHARSET_INFO *find_charset_by_name(CHARSET_INFO **table,
...
@@ -296,7 +296,7 @@ static CHARSET_INFO *find_charset_by_name(CHARSET_INFO **table,
return
NULL
;
return
NULL
;
}
}
static
CHARSET_INFO
*
add_charset
(
uint
cs_number
,
const
char
*
cs_name
)
static
CHARSET_INFO
*
add_charset
(
uint
cs_number
,
const
char
*
cs_name
,
myf
flags
)
{
{
CHARSET_INFO
tmp_cs
,
*
cs
;
CHARSET_INFO
tmp_cs
,
*
cs
;
uchar
tmp_ctype
[
CTYPE_TABLE_SIZE
];
uchar
tmp_ctype
[
CTYPE_TABLE_SIZE
];
...
@@ -311,7 +311,7 @@ static CHARSET_INFO *add_charset(uint cs_number, const char *cs_name)
...
@@ -311,7 +311,7 @@ static CHARSET_INFO *add_charset(uint cs_number, const char *cs_name)
cs
->
to_lower
=
tmp_to_lower
;
cs
->
to_lower
=
tmp_to_lower
;
cs
->
to_upper
=
tmp_to_upper
;
cs
->
to_upper
=
tmp_to_upper
;
cs
->
sort_order
=
tmp_sort_order
;
cs
->
sort_order
=
tmp_sort_order
;
if
(
read_charset_file
(
cs_number
,
cs
,
MYF
(
MY_WME
)
))
if
(
read_charset_file
(
cs_number
,
cs
,
flags
))
return
NULL
;
return
NULL
;
cs
=
(
CHARSET_INFO
*
)
my_once_alloc
(
sizeof
(
CHARSET_INFO
),
cs
=
(
CHARSET_INFO
*
)
my_once_alloc
(
sizeof
(
CHARSET_INFO
),
...
@@ -333,7 +333,7 @@ static CHARSET_INFO *add_charset(uint cs_number, const char *cs_name)
...
@@ -333,7 +333,7 @@ static CHARSET_INFO *add_charset(uint cs_number, const char *cs_name)
return
cs
;
return
cs
;
}
}
static
CHARSET_INFO
*
get_internal_charset
(
uint
cs_number
)
static
CHARSET_INFO
*
get_internal_charset
(
uint
cs_number
,
myf
flags
)
{
{
CHARSET_INFO
*
cs
;
CHARSET_INFO
*
cs
;
/*
/*
...
@@ -344,13 +344,13 @@ static CHARSET_INFO *get_internal_charset(uint cs_number)
...
@@ -344,13 +344,13 @@ static CHARSET_INFO *get_internal_charset(uint cs_number)
if
(
!
(
cs
=
find_charset
((
CHARSET_INFO
**
)
cs_info_table
.
buffer
,
cs_number
,
if
(
!
(
cs
=
find_charset
((
CHARSET_INFO
**
)
cs_info_table
.
buffer
,
cs_number
,
cs_info_table
.
elements
)))
cs_info_table
.
elements
)))
if
(
!
(
cs
=
find_compiled_charset
(
cs_number
)))
if
(
!
(
cs
=
find_compiled_charset
(
cs_number
)))
cs
=
add_charset
(
cs_number
,
get_charset_name
(
cs_number
));
cs
=
add_charset
(
cs_number
,
get_charset_name
(
cs_number
)
,
flags
);
pthread_mutex_unlock
(
&
THR_LOCK_charset
);
pthread_mutex_unlock
(
&
THR_LOCK_charset
);
return
cs
;
return
cs
;
}
}
static
CHARSET_INFO
*
get_internal_charset_by_name
(
const
char
*
name
)
static
CHARSET_INFO
*
get_internal_charset_by_name
(
const
char
*
name
,
myf
flags
)
{
{
CHARSET_INFO
*
cs
;
CHARSET_INFO
*
cs
;
/*
/*
...
@@ -361,7 +361,7 @@ static CHARSET_INFO *get_internal_charset_by_name(const char *name)
...
@@ -361,7 +361,7 @@ static CHARSET_INFO *get_internal_charset_by_name(const char *name)
if
(
!
(
cs
=
find_charset_by_name
((
CHARSET_INFO
**
)
cs_info_table
.
buffer
,
name
,
if
(
!
(
cs
=
find_charset_by_name
((
CHARSET_INFO
**
)
cs_info_table
.
buffer
,
name
,
cs_info_table
.
elements
)))
cs_info_table
.
elements
)))
if
(
!
(
cs
=
find_compiled_charset_by_name
(
name
)))
if
(
!
(
cs
=
find_compiled_charset_by_name
(
name
)))
cs
=
add_charset
(
get_charset_number
(
name
),
name
);
cs
=
add_charset
(
get_charset_number
(
name
),
name
,
flags
);
pthread_mutex_unlock
(
&
THR_LOCK_charset
);
pthread_mutex_unlock
(
&
THR_LOCK_charset
);
return
cs
;
return
cs
;
}
}
...
@@ -371,7 +371,7 @@ CHARSET_INFO *get_charset(uint cs_number, myf flags)
...
@@ -371,7 +371,7 @@ CHARSET_INFO *get_charset(uint cs_number, myf flags)
{
{
CHARSET_INFO
*
cs
;
CHARSET_INFO
*
cs
;
(
void
)
init_available_charsets
(
MYF
(
0
));
/* If it isn't initialized */
(
void
)
init_available_charsets
(
MYF
(
0
));
/* If it isn't initialized */
cs
=
get_internal_charset
(
cs_number
);
cs
=
get_internal_charset
(
cs_number
,
flags
);
if
(
!
cs
&&
(
flags
&
MY_WME
))
if
(
!
cs
&&
(
flags
&
MY_WME
))
{
{
...
@@ -403,7 +403,7 @@ CHARSET_INFO *get_charset_by_name(const char *cs_name, myf flags)
...
@@ -403,7 +403,7 @@ CHARSET_INFO *get_charset_by_name(const char *cs_name, myf flags)
{
{
CHARSET_INFO
*
cs
;
CHARSET_INFO
*
cs
;
(
void
)
init_available_charsets
(
MYF
(
0
));
/* If it isn't initialized */
(
void
)
init_available_charsets
(
MYF
(
0
));
/* If it isn't initialized */
cs
=
get_internal_charset_by_name
(
cs_name
);
cs
=
get_internal_charset_by_name
(
cs_name
,
flags
);
if
(
!
cs
&&
(
flags
&
MY_WME
))
if
(
!
cs
&&
(
flags
&
MY_WME
))
{
{
...
...
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