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
a16fea43
Commit
a16fea43
authored
Jan 17, 2011
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Plain Diff
Merging from mysql-5.1
parents
67bcf3e3
1c9515f6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
mysql-test/r/func_like.result
mysql-test/r/func_like.result
+5
-0
mysql-test/t/func_like.test
mysql-test/t/func_like.test
+5
-0
sql/item_sum.h
sql/item_sum.h
+1
-0
No files found.
mysql-test/r/func_like.result
View file @
a16fea43
...
...
@@ -182,4 +182,9 @@ INSERT INTO t2 VALUES (1), (2), (3);
SELECT 1 FROM t2 JOIN t1 ON 1 LIKE a GROUP BY a;
1
DROP TABLE t1, t2;
#
# Bug#59149 valgrind warnings with "like .. escape .." function
#
SELECT '' LIKE '1' ESCAPE COUNT(1);
ERROR HY000: Incorrect arguments to ESCAPE
End of 5.1 tests
mysql-test/t/func_like.test
View file @
a16fea43
...
...
@@ -126,5 +126,10 @@ INSERT INTO t2 VALUES (1), (2), (3);
SELECT
1
FROM
t2
JOIN
t1
ON
1
LIKE
a
GROUP
BY
a
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# Bug#59149 valgrind warnings with "like .. escape .." function
--
echo
#
--
error
ER_WRONG_ARGUMENTS
SELECT
''
LIKE
'1'
ESCAPE
COUNT
(
1
);
--
echo
End
of
5.1
tests
sql/item_sum.h
View file @
a16fea43
...
...
@@ -445,6 +445,7 @@ class Item_sum :public Item_result_field
forced_const
=
TRUE
;
}
virtual
bool
const_item
()
const
{
return
forced_const
;
}
virtual
bool
const_during_execution
()
const
{
return
false
;
}
virtual
void
print
(
String
*
str
,
enum_query_type
query_type
);
void
fix_num_length_and_dec
();
...
...
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