[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 2b88ca2 1/6: Use query<int> with an obsolesce
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 2b88ca2 1/6: Use query<int> with an obsolescent database entity |
Date: |
Fri, 9 Nov 2018 20:47:59 -0500 (EST) |
branch: master
commit 2b88ca24d5e105b97f50b7d57c2a0fb7ff8a90d3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Use query<int> with an obsolescent database entity
DB_MinInitPremType is enumerative, but there's no point in adding an
enum for it because it will be expunged in a month or two.
---
ihs_acctval.cpp | 6 +++---
ihs_avmly.cpp | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index 7f9a5aa..e61da12 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -1012,7 +1012,7 @@ double AccountValue::MinInitDumpin() const
{
if
( 0 == Year
- && 1 == database().Query(DB_MinInitPremType)
+ && 1 == database().query<int>(DB_MinInitPremType)
&& yare_input_.EffectiveDate == yare_input_.InforceAsOfDate
)
{
@@ -1029,7 +1029,7 @@ double AccountValue::MinInitPrem() const
{
if
( 0 == Year
- && 1 == database().Query(DB_MinInitPremType)
+ && 1 == database().query<int>(DB_MinInitPremType)
&& yare_input_.EffectiveDate == yare_input_.InforceAsOfDate
)
{
@@ -1074,7 +1074,7 @@ double AccountValue::ModalMinInitPremShortfall() const
{
if
( 0 == Year
- && 1 == database().Query(DB_MinInitPremType)
+ && 1 == database().query<int>(DB_MinInitPremType)
&& yare_input_.EffectiveDate == yare_input_.InforceAsOfDate
)
{
diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index 412ace5..eecc7cb 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -1210,7 +1210,7 @@ void AccountValue::TxAscertainDesiredPayment()
;
}
- if(0 == Year && ee_pay_this_month && 1 ==
database().Query(DB_MinInitPremType))
+ if(0 == Year && ee_pay_this_month && 1 ==
database().query<int>(DB_MinInitPremType))
{
double z = ModalMinInitPremShortfall();
// Illustration-reg guaranteed premium ignores GPT limit.
- [lmi-commits] [lmi] master updated (53201ac -> b3acc4a), Greg Chicares, 2018/11/09
- [lmi-commits] [lmi] master e0decd5 2/6: Note a future database improvement, Greg Chicares, 2018/11/09
- [lmi-commits] [lmi] master 0f1933d 3/6: Alphabetize enums, Greg Chicares, 2018/11/09
- [lmi-commits] [lmi] master 2b88ca2 1/6: Use query<int> with an obsolescent database entity,
Greg Chicares <=
- [lmi-commits] [lmi] master f092e7e 4/6: Add and use a new enumerator for 7702 treatment of term, Greg Chicares, 2018/11/09
- [lmi-commits] [lmi] master a58de62 5/6: Remove an unneeded Query() overload, Greg Chicares, 2018/11/09
- [lmi-commits] [lmi] master b3acc4a 6/6: Rename the last (capital 'Q') Query() function, Greg Chicares, 2018/11/09