~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/mysql-test/innodb_bug47777.test

Merge Revision revid:marko.makela@oracle.com-20100505101406-u4low2x26q6itck0 from MySQL InnoDB

Original revid:marko.makela@oracle.com-20100505101406-u4low2x26q6itck0

Original Authors: Marko Mäkelä <marko.makela@oracle.com>
Original commit message:
Merge from mysql-5.1-innodb:

  ------------------------------------------------------------
  revno: 3446
  revision-id: marko.makela@oracle.com-20100505100507-6kcd2hf32hruxbv7
  parent: marko.makela@oracle.com-20100505095328-vetnl0flhmhao7p5
  committer: Marko Mäkelä <marko.makela@oracle.com>
  branch nick: 5.1-innodb
  timestamp: Wed 2010-05-05 13:05:07 +0300
  message:
    Add Valgrind diagnostics to track down Bug #38999.
  ------------------------------------------------------------

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This is the test for bug 47777. GEOMETRY
 
2
# data is treated as BLOB data in innodb.
 
3
# Consequently, its key value generation/storing
 
4
# should follow the process for the BLOB
 
5
# datatype as well.
 
6
 
 
7
--source include/have_innodb.inc
 
8
 
 
9
create table bug47777(c2 linestring not null, primary key (c2(1))) engine=innodb;
 
10
 
 
11
insert into bug47777 values (geomfromtext('linestring(1 2,3 4,5 6,7 8,9 10)'));
 
12
 
 
13
# Verify correct row get inserted.
 
14
select count(*) from bug47777 where c2 =geomfromtext('linestring(1 2,3 4,5 6,7 8,9 10)');
 
15
 
 
16
# Update table bug47777 should be successful.
 
17
update bug47777 set c2=GeomFromText('POINT(1 1)');
 
18
 
 
19
# Verify the row get updated successfully. The original
 
20
# c2 value should be changed to GeomFromText('POINT(1 1)').
 
21
select count(*) from bug47777 where c2 =geomfromtext('linestring(1 2,3 4,5 6,7 8,9 10)');
 
22
select count(*) from bug47777 where c2 = GeomFromText('POINT(1 1)');
 
23
 
 
24
drop table bug47777;