diff options
author | gluh@eagle.intranet.mysql.r18.ru <> | 2005-09-06 16:19:59 +0500 |
---|---|---|
committer | gluh@eagle.intranet.mysql.r18.ru <> | 2005-09-06 16:19:59 +0500 |
commit | a5bd5e9af2c3e16f560a37280b9a3cc3a4fe2f74 (patch) | |
tree | 53b496b95a7630be277e1e5bc00721b8d922f773 /mysql-test/t/func_math.test | |
parent | 7f91ddcd88142985e18ae8b5f28624fe8722d4fb (diff) | |
download | mariadb-git-a5bd5e9af2c3e16f560a37280b9a3cc3a4fe2f74.tar.gz |
Bug #6172 RAND(a) should only accept constant values as arguments(2nd version)
Argument of RAND function can be constant value only
Diffstat (limited to 'mysql-test/t/func_math.test')
-rw-r--r-- | mysql-test/t/func_math.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/func_math.test b/mysql-test/t/func_math.test index ebbc594952c..c75454a96d4 100644 --- a/mysql-test/t/func_math.test +++ b/mysql-test/t/func_math.test @@ -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 |