lib/jvertica.rb in jvertica-0.1.7 vs lib/jvertica.rb in jvertica-0.1.8

- old
+ new

@@ -108,10 +108,10 @@ end end def copy query, source = nil, &blk raise InvalidQuery.new('can use only "copy".') unless %r{\A\s*copy}miu === query - if !source.nil? + if !source.nil? or block_given? copy_stream(query, source, &blk) else [query(query), nil] end end