diff options
Diffstat (limited to 'libmysqlpp/my-column.cpp')
-rw-r--r-- | libmysqlpp/my-column.cpp | 4 |
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 { |