lib/sequel/adapters/jdbc/pervasive.rb in sequel-jdbc-pervasive-adapter-0.0.1 vs lib/sequel/adapters/jdbc/pervasive.rb in sequel-jdbc-pervasive-adapter-0.0.2

- old
+ new

@@ -135,10 +135,14 @@ def select_clause_methods SELECT_CLAUSE_METHODS end def select_limit_sql(sql) - sql << "SELECT TOP #{@opts[:limit]}" if @opts[:limit] + if @opts[:limit] + sql << "SELECT TOP #{@opts[:limit]}" + else + sql << "SELECT" + end end def supports_is_true? false end