summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 18:48:07 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-10 18:48:07 +0000
commit31c1db43d2d425b06e16c2f7707326ce8ead64b8 (patch)
treeadaeffc225b11153c5caab344704727994d5e328
parentClang format (diff)
downloadlibdbpp-mysql-31c1db43d2d425b06e16c2f7707326ce8ead64b8.tar.bz2
libdbpp-mysql-31c1db43d2d425b06e16c2f7707326ce8ead64b8.tar.xz
libdbpp-mysql-31c1db43d2d425b06e16c2f7707326ce8ead64b8.zip
Remove unused shadowing length variable
-rw-r--r--libmysqlpp/my-column.cpp2
-rw-r--r--libmysqlpp/my-column.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/libmysqlpp/my-column.cpp b/libmysqlpp/my-column.cpp
index 4d2c762..c205439 100644
--- a/libmysqlpp/my-column.cpp
+++ b/libmysqlpp/my-column.cpp
@@ -13,7 +13,7 @@ MySQL::ColumnBase::isNull() const
}
MySQL::StringColumn::StringColumn(const char * name, unsigned int field, MYSQL_BIND * b, unsigned int len) :
- ColumnBase(name, field), value(len), length(0)
+ ColumnBase(name, field), value(len)
{
b->is_null = &is_null;
b->buffer_type = MYSQL_TYPE_STRING;
diff --git a/libmysqlpp/my-column.h b/libmysqlpp/my-column.h
index 51c4503..2726830 100644
--- a/libmysqlpp/my-column.h
+++ b/libmysqlpp/my-column.h
@@ -25,7 +25,6 @@ namespace MySQL {
void apply(DB::HandleField &) const override;
std::vector<char> value;
- long unsigned int length;
};
class NullColumn : public ColumnBase {