MCPcopy Create free account
hub / github.com/MariaDB/server / check_frame_bounds

Method check_frame_bounds

sql/sql_window.cc:114–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114bool
115Window_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
134void

Callers 1

setup_windowsFunction · 0.80

Calls 2

my_errorFunction · 0.85
is_unboundedMethod · 0.80

Tested by

no test coverage detected