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
02599bdf
Commit
02599bdf
authored
Jul 15, 2005
by
georg@lmy002.wdf.sap.corp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix for restoring the previous characterset in
test_client_character_set
parent
00398f5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/mysql_client_test.c
tests/mysql_client_test.c
+3
-3
No files found.
tests/mysql_client_test.c
View file @
02599bdf
...
@@ -13617,12 +13617,12 @@ static void test_bug10214()
...
@@ -13617,12 +13617,12 @@ static void test_bug10214()
static
void
test_client_character_set
()
static
void
test_client_character_set
()
{
{
MY_CHARSET_INFO
cs
;
MY_CHARSET_INFO
cs
;
char
*
csname
;
char
*
csname
=
(
char
*
)
"utf8"
;
char
*
csdefault
=
(
char
*
)
mysql_character_set_name
(
mysql
);
int
rc
;
int
rc
;
myheader
(
"test_client_character_set"
);
myheader
(
"test_client_character_set"
);
csname
=
(
char
*
)
"utf8"
;
rc
=
mysql_set_character_set
(
mysql
,
csname
);
rc
=
mysql_set_character_set
(
mysql
,
csname
);
DIE_UNLESS
(
rc
==
0
);
DIE_UNLESS
(
rc
==
0
);
...
@@ -13630,7 +13630,7 @@ static void test_client_character_set()
...
@@ -13630,7 +13630,7 @@ static void test_client_character_set()
DIE_UNLESS
(
!
strcmp
(
cs
.
csname
,
"utf8"
));
DIE_UNLESS
(
!
strcmp
(
cs
.
csname
,
"utf8"
));
DIE_UNLESS
(
!
strcmp
(
cs
.
name
,
"utf8_general_ci"
));
DIE_UNLESS
(
!
strcmp
(
cs
.
name
,
"utf8_general_ci"
));
/* Restore the default character set */
/* Restore the default character set */
rc
=
mysql_
query
(
mysql
,
"set names default"
);
rc
=
mysql_
set_character_set
(
mysql
,
csdefault
);
myquery
(
rc
);
myquery
(
rc
);
}
}
...
...
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