diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 05:06:45 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 06:00:08 +0000 |
commit | 01c1afa911f43669632db56ffff952310b76654a (patch) | |
tree | 0ca51ce5fe792b469edbd234660073e784e77892 /libmysqlpp | |
parent | Add missing override attribute (diff) | |
download | libdbpp-mysql-01c1afa911f43669632db56ffff952310b76654a.tar.bz2 libdbpp-mysql-01c1afa911f43669632db56ffff952310b76654a.tar.xz libdbpp-mysql-01c1afa911f43669632db56ffff952310b76654a.zip |
Tidy up
Diffstat (limited to 'libmysqlpp')
-rw-r--r-- | libmysqlpp/my-column.h | 8 |
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; }; } |