#At file:///export/home/log/Narayanan/mysql_checkouts_bazaar/5.1_main_repository/mysql-5.1-bugteam-44022/ based on revid:davi.arnaut@stripped
2868 Narayanan V 2009-04-10
Bug#44022 CREATE TABLE sometimes fails silently for IBMDB2I engine
In some circumstances, when a table is created with
the IBMDB2I engine, the CREATE TABLE statement will
return successfully but the table will not exist.
The current patch addresses the above issue and causes
CREATE to fail and report and error to the user.
@ storage/ibmdb2i/ha_ibmdb2i.cc
Locally declared return code hid function-
scoped declaration and went out of scope
before being returned. Removed inner
declaration.
modified:
storage/ibmdb2i/ha_ibmdb2i.cc
=== modified file 'storage/ibmdb2i/ha_ibmdb2i.cc'
--- a/storage/ibmdb2i/ha_ibmdb2i.cc 2009-03-09 21:20:14 +0000
+++ b/storage/ibmdb2i/ha_ibmdb2i.cc 2009-04-10 07:31:15 +0000
@@ -2323,7 +2323,7 @@ int ha_ibmdb2i::create(const char *name,
if (!rc && !isTemporary)
{
db2i_table* temp = new db2i_table(table_arg->s, name);
- int32 rc = temp->fastInitForCreate(name);
+ rc = temp->fastInitForCreate(name);
delete temp;
if (rc)
delete_table(name);
Attachment: [text/bzr-bundle] bzr/v.narayanan@sun.com-20090410073115-c85vzvodefrkw2qf.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1-bugteam branch (v.narayanan:2868) Bug#44022 | Narayanan V | 10 Apr |