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
7106dcfd
Commit
7106dcfd
authored
Mar 16, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-lower_case-4.1
parents
73e5e067
bfc1e46c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
mysql-test/r/func_like.result
mysql-test/r/func_like.result
+6
-0
mysql-test/t/func_like.test
mysql-test/t/func_like.test
+8
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+7
-0
No files found.
mysql-test/r/func_like.result
View file @
7106dcfd
...
...
@@ -46,6 +46,12 @@ select * from t1 where a like 'a\\%' escape '#' and a like 'a\\\\b';
a
a\b
drop table t1;
create table t1 (a datetime);
insert into t1 values ('2004-03-11 12:00:21');
select * from t1 where a like '2004-03-11 12:00:21';
a
2004-03-11 12:00:21
drop table t1;
SET NAMES koi8r;
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET koi8r);
INSERT INTO t1 VALUES (''),(''),(''),(''),(''),('');
...
...
mysql-test/t/func_like.test
View file @
7106dcfd
...
...
@@ -35,6 +35,14 @@ select * from t1 where a like 'a\\%' escape '#';
select
*
from
t1
where
a
like
'a\\%'
escape
'#'
and
a
like
'a\\\\b'
;
drop
table
t1
;
#
# Bug #2885: like and datetime
#
create
table
t1
(
a
datetime
);
insert
into
t1
values
(
'2004-03-11 12:00:21'
);
select
*
from
t1
where
a
like
'2004-03-11 12:00:21'
;
drop
table
t1
;
#
# Test like with non-default character set
...
...
sql/item_cmpfunc.cc
View file @
7106dcfd
...
...
@@ -225,6 +225,13 @@ void Item_bool_func2::fix_length_and_dec()
}
// Make a special case of compare with fields to get nicer DATE comparisons
if
(
functype
()
==
LIKE_FUNC
)
// Disable conversion in case of LIKE function.
{
set_cmp_func
();
return
;
}
if
(
args
[
0
]
->
type
()
==
FIELD_ITEM
)
{
Field
*
field
=
((
Item_field
*
)
args
[
0
])
->
field
;
...
...
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