mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug #6172 RAND(a) should only accept constant values as arguments(2nd version)
Argument of RAND function can be constant value only
This commit is contained in:
@@ -77,4 +77,13 @@ drop table t1;
|
||||
#
|
||||
select abs(-2) * -2;
|
||||
|
||||
#
|
||||
# Bug #6172 RAND(a) should only accept constant values as arguments
|
||||
#
|
||||
create table t1 (i int);
|
||||
insert into t1 values (1);
|
||||
--error 1210
|
||||
select rand(i) from t1;
|
||||
drop table t1;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
Reference in New Issue
Block a user