Bug #9407 | Linux binary: rollback from JDBC does not work | ||
---|---|---|---|
Submitted: | 25 Mar 2005 21:43 | Modified: | 26 Mar 2005 11:38 |
Reporter: | Frank Grimes | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 4.x and 5.x | OS: | Linux (Linux (Red Hat flavors)) |
Assigned to: | CPU Architecture: | Any |
[25 Mar 2005 21:43]
Frank Grimes
[25 Mar 2005 21:48]
Frank Grimes
Note that this happens even on tables that already exist. The suggestion of creating a table with the same JDBC connection was merely for convenience.
[25 Mar 2005 21:51]
Frank Grimes
Really simple test i've beenusing (more or less).
Attachment: MySQLLinuxTest.java (application/octet-stream, text), 1.74 KiB.
[26 Mar 2005 11:38]
Alexander Keremidarski
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.mysql.com/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thank you for your interest in MySQL. Additional info: Your create table doesn't specify the storage engine so it relies on the default one: String sql = "create table asset (id bigint not null auto_increment, original_filename varchar(250), primary key (id))"; If the default storage engine is MyISAM ROLLBACK can't work.
[29 Mar 2005 16:22]
Frank Grimes
That was the problem. And searching the documentation its all there. Using a Windows install, the default storage engine is InnoDB whereas the Linux install uses MyISAM. Being new to MySQL but familiar with RDMSs, i simply ran through the README and INSTALL_BINARY files in the install directory rather than reading the full doc-set. Nothing of this is mentioned in either of those files. i'm surprised that the default engine in a non-Windows install is for a non-transactional engine. Thats kind of rough for idiots like me. i'll open a doc bug suggesting that some mention of the transactional storage engine be placed in the INSTALL_BINARY file which i think would have alleviated this for me. But since i seem to be the only person in the wolrd who has had this problem, it might not be that big of a deal. Thanks very much for the help.