~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/t/count_distinct3.test

  • Committer: Monty Taylor
  • Date: 2008-07-02 14:35:48 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: monty@inaugust.com-20080702143548-onj30ry0sugr01uw
Removed all references to THREAD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
DROP TABLE IF EXISTS t1, t2;
8
8
--enable_warnings
9
9
 
10
 
CREATE TABLE t1 (id INTEGER, grp int, id_rev INTEGER);
 
10
CREATE TABLE t1 (id INTEGER, grp TINYINT, id_rev INTEGER);
11
11
 
12
12
--disable_query_log
13
13
SET @rnd_max= 2147483647;
15
15
while ($1)
16
16
{
17
17
  SET @rnd= RAND();
18
 
  SET @id = @rnd * @rnd_max;
 
18
  SET @id = CAST(@rnd * @rnd_max AS UNSIGNED);
19
19
  SET @id_rev= @rnd_max - @id;
20
 
  SET @grp= 127.0 * @rnd;
 
20
  SET @grp= CAST(127.0 * @rnd AS UNSIGNED); 
21
21
  INSERT INTO t1 (id, grp, id_rev) VALUES (@id, @grp, @id_rev); 
22
22
  dec $1;
23
23
}