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
7b507e8b
Commit
7b507e8b
authored
19 years ago
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/opt/local/work/mysql-4.1-9379
into mysql.com:/opt/local/work/mysql-5.0-root
parents
b6da7f62
ef1e748e
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 @
7b507e8b
...
...
@@ -759,3 +759,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;
This diff is collapsed.
Click to expand it.
mysql-test/t/ps.test
View file @
7b507e8b
...
...
@@ -788,3 +788,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
;
This diff is collapsed.
Click to expand it.
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