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
ef1e748e
Commit
ef1e748e
authored
Jul 14, 2005
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A test case for Bug#9442 "Set parameter make query fail if column
character set is UCS2". The bug is no longer repeatable.
parent
1755df76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
mysql-test/r/ps.result
mysql-test/r/ps.result
+19
-0
mysql-test/t/ps.test
mysql-test/t/ps.test
+13
-0
No files found.
mysql-test/r/ps.result
View file @
ef1e748e
...
...
@@ -641,3 +641,22 @@ execute stmt using @a, @b;
?=?
1
deallocate prepare stmt;
create table t1 (utext varchar(20) character set ucs2);
insert into t1 values ("lily");
insert into t1 values ("river");
prepare stmt from 'select utext from t1 where utext like ?';
set @param1='%%';
execute stmt using @param1;
utext
lily
river
execute stmt using @param1;
utext
lily
river
select utext from t1 where utext like '%%';
utext
lily
river
drop table t1;
deallocate prepare stmt;
mysql-test/t/ps.test
View file @
ef1e748e
...
...
@@ -666,3 +666,16 @@ set @a='CHRISTINE ';
set
@
b
=
'CHRISTINE'
;
execute
stmt
using
@
a
,
@
b
;
deallocate
prepare
stmt
;
#
# Bug#9442 Set parameter make query fail if column character set is UCS2
#
create
table
t1
(
utext
varchar
(
20
)
character
set
ucs2
);
insert
into
t1
values
(
"lily"
);
insert
into
t1
values
(
"river"
);
prepare
stmt
from
'select utext from t1 where utext like ?'
;
set
@
param1
=
'%%'
;
execute
stmt
using
@
param1
;
execute
stmt
using
@
param1
;
select
utext
from
t1
where
utext
like
'%%'
;
drop
table
t1
;
deallocate
prepare
stmt
;
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