diff options
Diffstat (limited to 'lib/field.h')
-rw-r--r-- | lib/field.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/field.h b/lib/field.h index 7451885..bec0618 100644 --- a/lib/field.h +++ b/lib/field.h | |||
@@ -228,9 +228,12 @@ namespace verbly { | |||
228 | 228 | ||
229 | const field& getConditionField() const | 229 | const field& getConditionField() const |
230 | { | 230 | { |
231 | return (type_ == type::join_where) | 231 | if (type_ == type::join_where) |
232 | ? *conditionField_ | 232 | { |
233 | : throw std::domain_error("Only condition join fields have a condition field"); | 233 | return *conditionField_; |
234 | } else { | ||
235 | throw std::domain_error("Only condition join fields have a condition field"); | ||
236 | } | ||
234 | } | 237 | } |
235 | 238 | ||
236 | int getConditionValue() const | 239 | int getConditionValue() const |