summaryrefslogtreecommitdiff
path: root/storage/ibmdb2i
diff options
context:
space:
mode:
authorNarayanan V <v.narayanan@sun.com>2009-04-10 13:01:15 +0530
committerNarayanan V <v.narayanan@sun.com>2009-04-10 13:01:15 +0530
commit63e2b7dd081661ed205278a4516ce5fb40f0bbdb (patch)
tree7d2d642a41f9c36b72563d3db1d7129f99bce749 /storage/ibmdb2i
parent214bd5a121058dfb31237c5326ad28b8c5f8eea3 (diff)
downloadmariadb-git-63e2b7dd081661ed205278a4516ce5fb40f0bbdb.tar.gz
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.
Diffstat (limited to 'storage/ibmdb2i')
-rw-r--r--storage/ibmdb2i/ha_ibmdb2i.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/ibmdb2i/ha_ibmdb2i.cc b/storage/ibmdb2i/ha_ibmdb2i.cc
index 6c7ce12ded1..11eceb68cb7 100644
--- a/storage/ibmdb2i/ha_ibmdb2i.cc
+++ b/storage/ibmdb2i/ha_ibmdb2i.cc
@@ -2323,7 +2323,7 @@ int ha_ibmdb2i::create(const char *name, TABLE *table_arg,
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);