From 8e4f33741f54f48c28f04e74f1f3c0757723c111 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Sun, 17 Jul 2016 19:54:12 +0300 Subject: [PATCH] Ticket. Get() function added. --- .../stargazer/plugins/store/firebird/firebird_store.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/projects/stargazer/plugins/store/firebird/firebird_store.h b/projects/stargazer/plugins/store/firebird/firebird_store.h index 688f0e88..d9c6af24 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store.h +++ b/projects/stargazer/plugins/store/firebird/firebird_store.h @@ -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 +inline +T Get(IBPP::Statement st, size_t pos) +{ + T value; + st->Get(pos, value); + return value; +} + #endif //FIREBIRD_STORE_H -- 2.44.2