Bug #37791 | Problem in innodb transaction | ||
---|---|---|---|
Submitted: | 2 Jul 2008 3:23 | Modified: | 6 Jul 2008 12:14 |
Reporter: | newbie Shai | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.0.27 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[2 Jul 2008 3:23]
newbie Shai
[2 Jul 2008 3:41]
Valeriy Kravchuk
Thank you for a problem report. Please, send the results of SHOW CREATE TABLE for both tblStock and tblTemp tables.
[2 Jul 2008 3:54]
newbie Shai
Dear Valeriy, Below is what your required. Thanks. The funny part I dont understand why is this suddenly happening as it was ok with most of my data and it only happen for very few cases but still this makes my data incorrect then. CREATE TABLE `tblstock` ( `stockID` int(10) NOT NULL auto_increment, `receiveOrderID` int(10) NOT NULL default '0', `receiveOrderDetailsID` int(10) NOT NULL default '0', `outletFromID` int(2) NOT NULL default '0', `outletID` int(2) NOT NULL default '0', `productID` int(5) NOT NULL default '0', `productType` enum('Accessory','Coupon','Imei') NOT NULL, `stockSerial` varchar(20) NOT NULL default '0', `stockBalance` int(10) NOT NULL default '0', `stockBooked` int(10) NOT NULL default '0', `costPrice` double(10,2) NOT NULL default '0.00', `stockPrice` double(10,2) NOT NULL default '0.00', `stockDate` date NOT NULL, `stockTime` time NOT NULL, `transactionType` enum('t','i','r','e','f','p') NOT NULL, `stockStatus` enum('b','s','t','y') NOT NULL default 'y', PRIMARY KEY (`stockID`,`receiveOrderID`,`outletFromID`,`transactionType`), KEY `stockSIQ` (`stockSIQ`), KEY `productID` (`productID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 CREATE TABLE `tbltemp` ( `tempID` int(10) NOT NULL auto_increment, `productType` enum('Accessory','Coupon','Imei') NOT NULL, `productID` int(5) NOT NULL, `stockID` int(10) NOT NULL, `stockSerial` varchar(20) NOT NULL, `employeeID` int(2) NOT NULL, `tempReceiptTimeStamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, PRIMARY KEY (`tempID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1
[2 Jul 2008 8:51]
Susanne Ebrecht
This is a duplicate of bug #37790
[6 Jul 2008 12:14]
newbie Shai
Dear Valeriy, I would like to find out did you manage to find out anything on why this problem happened ? Thanks.