diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-27 18:41:06 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-27 18:41:06 +0100 |
commit | 6273f9b9d93ef072263e1dca87eb5824e061e428 (patch) | |
tree | bfdbce543fdd3a7df845b77524fc57b4f3e352bc | |
parent | Wait on specific events being processed (diff) | |
download | mygrate-6273f9b9d93ef072263e1dca87eb5824e061e428.tar.bz2 mygrate-6273f9b9d93ef072263e1dca87eb5824e061e428.tar.xz mygrate-6273f9b9d93ef072263e1dca87eb5824e061e428.zip |
Fix len variable name
-rw-r--r-- | lib/mysql_types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mysql_types.cpp b/lib/mysql_types.cpp index 41dbb6e..8b2208e 100644 --- a/lib/mysql_types.cpp +++ b/lib/mysql_types.cpp @@ -96,11 +96,11 @@ namespace MyGrate::MySQL { typename Type<ET, false>::C Type<ET, false>::read(RawDataReader & md, RawDataReader & data) \ { \ const auto realtype {md.readValue<enum_field_types, 1>()}; \ - const auto lenlen {md.readValue<uint8_t>()}; \ + const auto len {md.readValue<uint8_t>()}; \ switch (realtype) { \ case MYSQL_TYPE_ENUM: \ case MYSQL_TYPE_VAR_STRING: \ - return data.viewValue<std::string_view>(lenlen); \ + return data.viewValue<std::string_view>(len); \ default: \ throw std::logic_error("Not implemented: sub-type: " + std::to_string(realtype)); \ } \ |