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
6a039804
Commit
6a039804
authored
Oct 02, 2007
by
gkodinov/kgeorge@magare.gmz
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-opt
into magare.gmz:/home/kgeorge/mysql/autopush/B28702-vg-5.0-opt
parents
6c8627de
6e43d599
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
mysql-test/r/func_misc.result
mysql-test/r/func_misc.result
+16
-0
mysql-test/t/func_misc.test
mysql-test/t/func_misc.test
+14
-0
sql/item.h
sql/item.h
+2
-0
No files found.
mysql-test/r/func_misc.result
View file @
6a039804
...
...
@@ -185,4 +185,20 @@ ERROR 21000: Operand should contain 1 column(s)
drop table table_26093;
drop function func_26093_a;
drop function func_26093_b;
SELECT NAME_CONST('test', NOW());
ERROR HY000: Incorrect arguments to NAME_CONST
SELECT NAME_CONST('test', UPPER('test'));
ERROR HY000: Incorrect arguments to NAME_CONST
SELECT NAME_CONST('test', NULL);
test
NULL
SELECT NAME_CONST('test', 1);
test
1
SELECT NAME_CONST('test', 1.0);
test
1.0
SELECT NAME_CONST('test', 'test');
test
test
End of 5.0 tests
mysql-test/t/func_misc.test
View file @
6a039804
...
...
@@ -189,4 +189,18 @@ drop table table_26093;
drop
function
func_26093_a
;
drop
function
func_26093_b
;
#
# Bug #30832: Assertion + crash with select name_const('test',now());
#
--
error
ER_WRONG_ARGUMENTS
SELECT
NAME_CONST
(
'test'
,
NOW
());
--
error
ER_WRONG_ARGUMENTS
SELECT
NAME_CONST
(
'test'
,
UPPER
(
'test'
));
SELECT
NAME_CONST
(
'test'
,
NULL
);
SELECT
NAME_CONST
(
'test'
,
1
);
SELECT
NAME_CONST
(
'test'
,
1.0
);
SELECT
NAME_CONST
(
'test'
,
'test'
);
--
echo
End
of
5.0
tests
sql/item.h
View file @
6a039804
...
...
@@ -1112,6 +1112,8 @@ public:
Item_name_const
(
Item
*
name_arg
,
Item
*
val
)
:
value_item
(
val
),
name_item
(
name_arg
)
{
if
(
!
value_item
->
basic_const_item
())
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
"NAME_CONST"
);
Item
::
maybe_null
=
TRUE
;
}
...
...
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