]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/firebird/firebird_store_services.cpp
Version bump
[stg.git] / projects / stargazer / plugins / store / firebird / firebird_store_services.cpp
index 01a460e706a5114c99968cc2933b1eb1d0038201..84eab5fa885b66a8ad593d5a0cbd791f61824f1e 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 #include "firebird_store.h"
-#include "ibpp.h"
+#include "stg/ibpp.h"
 
 //-----------------------------------------------------------------------------
 int FIREBIRD_STORE::GetServicesList(vector<string> * servicesList) const
@@ -80,7 +80,7 @@ try
          where name = ?");
     st->Set(1, sc.comment);
     st->Set(2, sc.cost);
-    st->Set(3, sc.payDay);
+    st->Set(3, static_cast<int16_t>(sc.payDay));
     st->Set(4, sc.name);
     st->Execute();
     tr->Commit();
@@ -115,7 +115,9 @@ try
         {
         st->Get(3, sc->comment);
         st->Get(4, sc->cost);
-        st->Get(5, sc->payDay);
+        int16_t pd;
+        st->Get(5, pd);
+        sc->payDay = pd;
         }
     else
         {