lib/jvertica.rb in jvertica-0.2.4 vs lib/jvertica.rb in jvertica-0.2.5
- old
+ new
@@ -138,9 +138,10 @@
when %r{\A\s*delete}miu then return stmt.executeUpdate(query)
when %r{\A\s*alter}miu then return stmt.executeUpdate(query)
when %r{\A\s*drop}miu then return stmt.execute(query)
when %r{\A\s*create}miu then return stmt.execute(query)
when %r{\A\s*set}miu then return stmt.execute(query)
+ when %r{\A\s*grant}miu then return stmt.execute(query)
else rs = stmt.executeQuery(query)
end
if block_given?
ResultSet.new(rs).each do |row|