bdb-crash.test
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 1k
Category:

MySQL

Development Platform:

Visual C++

  1. # test for bug reported by Mark Steele
  2. drop table if exists tblChange;
  3. CREATE TABLE tblCharge (
  4.   ChargeID int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
  5.   ServiceID int(10) unsigned DEFAULT '0' NOT NULL,
  6.   ChargeDate date DEFAULT '0000-00-00' NOT NULL,
  7.   ChargeAmount decimal(20,2) DEFAULT '0.00' NOT NULL,
  8.   FedTaxes decimal(20,2) DEFAULT '0.00' NOT NULL,
  9.   ProvTaxes decimal(20,2) DEFAULT '0.00' NOT NULL,
  10.   ChargeStatus enum('New','Auth','Unauth','Sale','Denied','Refund')
  11. DEFAULT 'New' NOT NULL,
  12.   ChargeAuthorizationMessage text,
  13.   ChargeComment text,
  14.   ChargeTimeStamp varchar(20),
  15.   PRIMARY KEY (ChargeID),
  16.   KEY ServiceID (ServiceID),
  17.   KEY ChargeDate (ChargeDate)
  18. ) type=BDB;
  19. BEGIN;
  20. INSERT INTO tblCharge
  21. VALUES(NULL,1,'2001-03-01',1,1,1,'New',NULL,NULL,'now');
  22. COMMIT;
  23. BEGIN;
  24. UPDATE tblCharge SET ChargeAuthorizationMessage = 'blablabla' WHERE
  25. ChargeID = 1;
  26. COMMIT;
  27. INSERT INTO tblCharge
  28. VALUES(NULL,1,'2001-03-01',1,1,1,'New',NULL,NULL,'now');
  29. select * from tblCharge;
  30. drop table tblCharge;