From 6273f9b9d93ef072263e1dca87eb5824e061e428 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 27 Aug 2021 18:41:06 +0100 Subject: Fix len variable name --- lib/mysql_types.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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::C Type::read(RawDataReader & md, RawDataReader & data) \ { \ const auto realtype {md.readValue()}; \ - const auto lenlen {md.readValue()}; \ + const auto len {md.readValue()}; \ switch (realtype) { \ case MYSQL_TYPE_ENUM: \ case MYSQL_TYPE_VAR_STRING: \ - return data.viewValue(lenlen); \ + return data.viewValue(len); \ default: \ throw std::logic_error("Not implemented: sub-type: " + std::to_string(realtype)); \ } \ -- cgit v1.2.3