summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-01-21 18:56:38 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-01-21 18:56:38 -0500
commit2a1f319b37dc3af45c136bfdc9226515c2fefaf2 (patch)
tree8baacc24b2954706b3dda63ce37e85f1b645555c
parente02e3d57dc090c8fd333812b84e91805921e398c (diff)
downloadverbly-2a1f319b37dc3af45c136bfdc9226515c2fefaf2.tar.gz
verbly-2a1f319b37dc3af45c136bfdc9226515c2fefaf2.tar.bz2
verbly-2a1f319b37dc3af45c136bfdc9226515c2fefaf2.zip
Fixed statement generation involving nullity/non-nullity
-rw-r--r--lib/statement.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/statement.cpp b/lib/statement.cpp index 52fa00d..f8d5346 100644 --- a/lib/statement.cpp +++ b/lib/statement.cpp
@@ -723,7 +723,26 @@ namespace verbly {
723 723
724 case type::singleton: 724 case type::singleton:
725 { 725 {
726 return {singleton_.value_}; 726 switch (singleton_.comparison_)
727 {
728 case comparison::equals:
729 case comparison::does_not_equal:
730 case comparison::is_greater_than:
731 case comparison::is_at_most:
732 case comparison::is_less_than:
733 case comparison::is_at_least:
734 case comparison::is_like:
735 case comparison::is_not_like:
736 {
737 return {singleton_.value_};
738 }
739
740 case comparison::is_not_null:
741 case comparison::is_null:
742 {
743 return {};
744 }
745 }
727 } 746 }
728 747
729 case type::group: 748 case type::group: