Class: DBI::Adonet::PreparedStatement

Inherits:
SQL::PreparedStatement
  • Object
show all
Defined in:
lib/dbd/adonet/prepared_statement.rb

Instance Method Summary collapse

Instance Method Details

#bindObject Also known as: to_s

attempts to bind the arguments in args to this statement. Will raise StandardError if there are any extents issues.



7
8
9
10
11
12
13
# File 'lib/dbd/adonet/prepared_statement.rb', line 7

def bind
  @unbound.each do |res_pos, arg_pos|
    @result[res_pos] = "@p#{arg_pos + 1}"
  end

  @result.join("")
end