| 112 | } |
| 113 | |
| 114 | bool |
| 115 | Window_frame::check_frame_bounds() |
| 116 | { |
| 117 | if ((top_bound->is_unbounded() && |
| 118 | top_bound->precedence_type == Window_frame_bound::FOLLOWING) || |
| 119 | (bottom_bound->is_unbounded() && |
| 120 | bottom_bound->precedence_type == Window_frame_bound::PRECEDING) || |
| 121 | (top_bound->precedence_type == Window_frame_bound::CURRENT && |
| 122 | bottom_bound->precedence_type == Window_frame_bound::PRECEDING) || |
| 123 | (bottom_bound->precedence_type == Window_frame_bound::CURRENT && |
| 124 | top_bound->precedence_type == Window_frame_bound::FOLLOWING)) |
| 125 | { |
| 126 | my_error(ER_BAD_COMBINATION_OF_WINDOW_FRAME_BOUND_SPECS, MYF(0)); |
| 127 | return true; |
| 128 | } |
| 129 | |
| 130 | return false; |
| 131 | } |
| 132 | |
| 133 | |
| 134 | void |
no test coverage detected