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
ce1ce20e
Commit
ce1ce20e
authored
Oct 13, 2007
by
gkodinov/kgeorge@magare.gmz
Browse files
Options
Browse Files
Download
Plain Diff
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
into magare.gmz:/home/kgeorge/mysql/autopush/B31440-5.1-opt
parents
1e3fd494
df422f7c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
mysql-test/r/func_regexp.result
mysql-test/r/func_regexp.result
+5
-0
mysql-test/t/func_regexp.test
mysql-test/t/func_regexp.test
+10
-1
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+1
-0
No files found.
mysql-test/r/func_regexp.result
View file @
ce1ce20e
...
@@ -98,3 +98,8 @@ R2
...
@@ -98,3 +98,8 @@ R2
R3
R3
deallocate prepare stmt1;
deallocate prepare stmt1;
drop table t1;
drop table t1;
End of 4.1 tests
SELECT 1 REGEXP NULL;
1 REGEXP NULL
NULL
End of 5.0 tests
mysql-test/t/func_regexp.test
View file @
ce1ce20e
...
@@ -74,4 +74,13 @@ execute stmt1 using @a;
...
@@ -74,4 +74,13 @@ execute stmt1 using @a;
deallocate
prepare
stmt1
;
deallocate
prepare
stmt1
;
drop
table
t1
;
drop
table
t1
;
# End of 4.1 tests
--
echo
End
of
4.1
tests
#
# Bug #31440: 'select 1 regex null' asserts debug server
#
SELECT
1
REGEXP
NULL
;
--
echo
End
of
5.0
tests
sql/item_cmpfunc.cc
View file @
ce1ce20e
...
@@ -4408,6 +4408,7 @@ Item_func_regex::fix_fields(THD *thd, Item **ref)
...
@@ -4408,6 +4408,7 @@ Item_func_regex::fix_fields(THD *thd, Item **ref)
if
(
args
[
1
]
->
null_value
)
if
(
args
[
1
]
->
null_value
)
{
// Will always return NULL
{
// Will always return NULL
maybe_null
=
1
;
maybe_null
=
1
;
fixed
=
1
;
return
FALSE
;
return
FALSE
;
}
}
int
error
;
int
error
;
...
...
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