summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-column.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 02:42:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commit97c3d4c1604b525e4522814e34723488c59a83f5 (patch)
treecd9ca0e4b7013d4af1c85c4a677a2cbb12bb9603 /libmysqlpp/my-column.cpp
parentRemove rebind (diff)
downloadlibdbpp-mysql-97c3d4c1604b525e4522814e34723488c59a83f5.tar.bz2
libdbpp-mysql-97c3d4c1604b525e4522814e34723488c59a83f5.tar.xz
libdbpp-mysql-97c3d4c1604b525e4522814e34723488c59a83f5.zip
Reshuffle and add new exceptions
Diffstat (limited to 'libmysqlpp/my-column.cpp')
-rw-r--r--libmysqlpp/my-column.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmysqlpp/my-column.cpp b/libmysqlpp/my-column.cpp
index cc690be..14c0a58 100644
--- a/libmysqlpp/my-column.cpp
+++ b/libmysqlpp/my-column.cpp
@@ -26,10 +26,12 @@ MySQL::StringColumn::StringColumn(const char * name, unsigned int field, MYSQL_B
b->buffer_length = len;
b->length = &length;
}
+
MySQL::StringColumn::~StringColumn()
{
delete[] value;
}
+
void
MySQL::StringColumn::apply(DB::HandleField & h) const
{
@@ -40,6 +42,7 @@ MySQL::StringColumn::apply(DB::HandleField & h) const
h.string(value, length);
}
}
+
MySQL::NullColumn::NullColumn(const char * name, unsigned int field, MYSQL_BIND * b) :
ColumnBase(name, field)
{
@@ -48,6 +51,7 @@ MySQL::NullColumn::NullColumn(const char * name, unsigned int field, MYSQL_BIND
b->buffer = NULL;
b->buffer_length = 0;
}
+
void
MySQL::NullColumn::apply(DB::HandleField & h) const
{