Method: Sequel::SQLite::DatasetMethods#having
- Defined in:
- lib/sequel/adapters/shared/sqlite.rb
#having(*cond, &block) ⇒ Object
HAVING requires GROUP BY on SQLite
327 328 329 330 |
# File 'lib/sequel/adapters/shared/sqlite.rb', line 327 def having(*cond, &block) raise(InvalidOperation, "Can only specify a HAVING clause on a grouped dataset") unless @opts[:group] super end |