]> git.stg.codes - stg.git/commitdiff
Ticket. Get() function added.
authorElena Mamontova <helenh463@gmail.com>
Sun, 17 Jul 2016 16:54:12 +0000 (19:54 +0300)
committerElena Mamontova <helenh463@gmail.com>
Sun, 17 Jul 2016 16:54:12 +0000 (19:54 +0300)
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);
 
 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
 #endif //FIREBIRD_STORE_H