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
ee164070
Commit
ee164070
authored
Oct 01, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mhansson@bk-internal:/home/bk/mysql-5.1-opt
into dl145s.mysql.com:/data0/mhansson/bug30832/my51-bug30832
parents
e4d0c1cb
3b9b52b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-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
+13
-0
sql/item.h
sql/item.h
+2
-0
No files found.
mysql-test/r/func_misc.result
View file @
ee164070
...
...
@@ -190,6 +190,22 @@ 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
select connection_id() > 0;
connection_id() > 0
...
...
mysql-test/t/func_misc.test
View file @
ee164070
...
...
@@ -198,6 +198,19 @@ 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 @
ee164070
...
...
@@ -1243,6 +1243,8 @@ class Item_name_const : public Item
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