diff options
author | Michael Widenius <monty@askmonty.org> | 2013-05-10 16:01:38 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2013-05-10 16:01:38 +0300 |
commit | 7202c21b343c14d0f1fc868fc7789486338a656f (patch) | |
tree | ff6b65876fa093b828d74f70ec78bc054b6ce4e4 /plugin/handler_socket/handlersocket/database.cpp | |
parent | 53d44ad18b83dd59481ddaa71dcf8dc9e3446b83 (diff) | |
download | mariadb-git-7202c21b343c14d0f1fc868fc7789486338a656f.tar.gz |
Merge of patch lp:~ahiguti100/maria/handlersocket-fix-78 by Akira Higuchi
A bugfix of HandlerSocket is not applied to mariadb yet
Diffstat (limited to 'plugin/handler_socket/handlersocket/database.cpp')
-rw-r--r-- | plugin/handler_socket/handlersocket/database.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/handler_socket/handlersocket/database.cpp b/plugin/handler_socket/handlersocket/database.cpp index 311eec55fa8..beb28ef708c 100644 --- a/plugin/handler_socket/handlersocket/database.cpp +++ b/plugin/handler_socket/handlersocket/database.cpp @@ -658,7 +658,7 @@ dbcontext::cmd_insert_internal(dbcallback_i& cb, const prep_stmt& pst, empty_record(table); memset(buf, 0, table->s->null_bytes); /* clear null flags */ const prep_stmt::fields_type& rf = pst.get_ret_fields(); - const size_t n = rf.size(); + const size_t n = std::min(rf.size(), fvalslen); for (size_t i = 0; i < n; ++i) { uint32_t fn = rf[i]; Field *const fld = table->field[fn]; |