From c95017a05556ee19d801a680689511e4ca56bc1c Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 10 Sep 2011 19:32:21 +0300 Subject: [PATCH] Fix unsigned types while working with IBPP --- .../plugins/store/firebird/firebird_store_services.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/stargazer/plugins/store/firebird/firebird_store_services.cpp b/projects/stargazer/plugins/store/firebird/firebird_store_services.cpp index 7d7b3d53..f7167acb 100644 --- a/projects/stargazer/plugins/store/firebird/firebird_store_services.cpp +++ b/projects/stargazer/plugins/store/firebird/firebird_store_services.cpp @@ -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(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); + long pd; + st->Get(5, pd); + sc->payDay = pd; } else { -- 2.44.2