]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/firebird/firebird_store.h
Ticket 37. if (version > 7) check added and the 'change_policy' field
[stg.git] / projects / stargazer / plugins / store / firebird / firebird_store.h
index 688f0e88651da56258aad827b29d4ff92a21c6d7..d9c6af244b30c3fbe6628282789aee5955b8d492 100644 (file)
@@ -136,4 +136,13 @@ time_t ts2time_t(const IBPP::Timestamp & ts);
 void time_t2ts(time_t t, IBPP::Timestamp * ts);
 void ym2date(int year, int month, IBPP::Date * date);
 
+template <typename T>
+inline
+T Get(IBPP::Statement st, size_t pos)
+{
+    T value;
+    st->Get(pos, value);
+    return value;
+}
+
 #endif //FIREBIRD_STORE_H