~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/rand_function/tests/t/basic.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
explain extended select rand(999999),rand();
 
2
#
 
3
# Bug #7281: problem with rand()
 
4
#
 
5
 
 
6
--error ER_BAD_FIELD_ERROR
 
7
select rand(rand);
 
8
 
 
9
#
 
10
# Bug #6172 RAND(a) should only accept constant values as arguments
 
11
#
 
12
CREATE TABLE t1 (a INT);
 
13
 
 
14
INSERT INTO t1 VALUES (1),(1),(1),(2);
 
15
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1;
 
16
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1 WHERE a = 1;
 
17
INSERT INTO t1 VALUES (3);
 
18
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1;
 
19
SELECT RAND(2) * 1000, RAND(a) * 1000 FROM t1 WHERE a = 1;
 
20
 
 
21
DROP TABLE t1;