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:
unknown 2005-09-06 16:19:59 +05:00
commit 61a5fac1cc
5 changed files with 41 additions and 26 deletions

View file

@ -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