summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmysqlpp/my-column.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libmysqlpp/my-column.h b/libmysqlpp/my-column.h
index 088b768..0948146 100644
--- a/libmysqlpp/my-column.h
+++ b/libmysqlpp/my-column.h
@@ -17,23 +17,31 @@ namespace MySQL {
long unsigned int length;
friend class SelectCommand;
};
+
class StringColumn : public ColumnBase {
public:
StringColumn(const char * name, unsigned int field, MYSQL_BIND * b, unsigned int len);
~StringColumn();
+
void apply(DB::HandleField &) const override;
+
char * value;
long unsigned int length;
};
+
class NullColumn : public ColumnBase {
public:
NullColumn(const char * name, unsigned int field, MYSQL_BIND * b);
+
void apply(DB::HandleField &) const override;
};
+
template <class T, enum_field_types MT> class Column : public ColumnBase {
public:
Column(const char * name, unsigned int field, MYSQL_BIND * b);
+
void apply(DB::HandleField & h) const override;
+
T value;
};
}