Unverified Commit 2baa874c authored by Martin Lowe's avatar Martin Lowe 🇨🇦 Committed by GitHub
Browse files

Merge pull request #329 from autumnfound/malowe/master/updated-insurance

Add additional check to ensure the dateUpdated is present when checking
parents 07f9e91d c8a3ed71
...@@ -276,6 +276,8 @@ public class MembershipForm extends BareNode implements TargetedClone<Membership ...@@ -276,6 +276,8 @@ public class MembershipForm extends BareNode implements TargetedClone<Membership
if (dateCreated != null && StringUtils.isNumeric(dateCreated)) { if (dateCreated != null && StringUtils.isNumeric(dateCreated)) {
stmt.addClause(new ParameterizedSQLStatement.Clause(TABLE.getAlias() + ".dateUpdated < ?", stmt.addClause(new ParameterizedSQLStatement.Clause(TABLE.getAlias() + ".dateUpdated < ?",
new Object[] { Long.parseLong(dateCreated) })); new Object[] { Long.parseLong(dateCreated) }));
stmt.addClause(new ParameterizedSQLStatement.Clause(TABLE.getAlias() + ".dateUpdated IS NOT NULL",
new Object[] {}));
} }
return stmt; return stmt;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment