lib/sequel_core/adapters/postgres.rb
def execute(sql, args=nil)
        q = nil
        begin
          q = args ? async_exec(sql, args) : async_exec(sql)
        rescue PGError => e
          raise if status == Adapter::CONNECTION_OK
          reset
          q = args ? async_exec(sql, args) : async_exec(sql)
        ensure
          block
        end
        begin
          block_given? ? yield(q) : q.cmd_tuples
        ensure
          q.clear
        end
      end
# Execute the given SQL with this connection.  If a block is given,
# yield the results, otherwise, return the number of changed rows.
Execute the given SQL with this connection.  If a block is given,
yield the results, otherwise, return the number of changed rows.
Execute the given SQL with this connection . If a block is given yield the results otherwise return the number of changed rows .
def execute(sql, args=nil)
        q = nil
        begin
          q = args ? async_exec(sql, args) : async_exec(sql)
        rescue PGError => e
          raise if status == Adapter::CONNECTION_OK
          reset
          q = args ? async_exec(sql, args) : async_exec(sql)
        ensure
          block
        end
        begin
          block_given? ? yield(q) : q.cmd_tuples
        ensure
          q.clear
        end
      end
def execute ( sql , args = nil ) q = nil begin q = args ? async_exec ( sql , args ) : async_exec ( sql ) rescue PGError => e raise if status == Adapter :: CONNECTION_OK reset q = args ? async_exec ( sql , args ) : async_exec ( sql ) ensure block end begin block_given? ? yield ( q ) : q . cmd_tuples ensure q . clear end end
Execute the given SQL with this connection.
Execute the given SQL with this connection .
sql
args