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

« back to all changes in this revision

Viewing changes to plugin/crc32/tests/r/crc32.result

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SELECT CRC32("I love testing");
 
2
CRC32("I love testing")
 
3
34910190
 
4
SELECT CRC32("I love testing");
 
5
CRC32("I love testing")
 
6
34910190
 
7
DROP TABLE IF EXISTS t1;
 
8
CREATE TABLE t1
 
9
(
 
10
some_text VARCHAR(100) NOT NULL
 
11
);
 
12
INSERT INTO t1 VALUES ("I love testing");
 
13
SELECT CRC32("I love testing") = CRC32(some_text) FROM t1;
 
14
CRC32("I love testing") = CRC32(some_text)
 
15
1
 
16
SELECT CRC32();
 
17
ERROR 42000: Incorrect parameter count in the call to native function 'crc32'
 
18
SELECT CRC32('foo','bar','zoo');
 
19
ERROR 42000: Incorrect parameter count in the call to native function 'crc32'
 
20
SELECT CRC32('');
 
21
CRC32('')
 
22
0
 
23
SELECT CRC32(100);
 
24
CRC32(100)
 
25
595022058
 
26
SELECT CRC32(4294967295);
 
27
CRC32(4294967295)
 
28
1540081739
 
29
SELECT CRC32('a');
 
30
CRC32('a')
 
31
3904355907
 
32
SELECT CRC32('taohuoahusoahusoa haneo uhnteoahu ntoahu saonhu aoeuoa hun');
 
33
CRC32('taohuoahusoahusoa haneo uhnteoahu ntoahu saonhu aoeuoa hun')
 
34
734998015
 
35
DROP TABLE t1;