summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-11-16 12:10:44 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-11-16 12:10:44 +0000
commit9ae173c4ff5f4aab480ac7d1d5f32d2ef24fdb25 (patch)
tree7ef70829171aa4049643979a6e752e92e1ebdd1e /sql/ha_ndbcluster.cc
parenta2b3d71d1f1c866406b691e6b15de275b0d8dceb (diff)
downloadmariadb-git-9ae173c4ff5f4aab480ac7d1d5f32d2ef24fdb25.tar.gz
Also print warning if there is an ndb->mysql errorcode mapping, this since the warning provides valuable info to the user
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index d9545d5cbb8..bc1c887bfab 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -144,10 +144,17 @@ static int ndb_to_mysql_error(const NdbError *err)
// Push the NDB error message as warning
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
ER_GET_ERRMSG, ER(ER_GET_ERRMSG),
- err->code, err->message, "NDB");
+ err->code, err->message, "NDB");
return err->code;
}
}
+ // Push the NDB error message as warning
+ // this since e.g. HA_ERR_RECORD_FILE_FULL maps to
+ // several error codes in NDB, and the uses needs
+ // to know which one it is
+ push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
+ ER_GET_ERRMSG, ER(ER_GET_ERRMSG),
+ err->code, err->message, "NDB");
return err_map[i].my_err;
}