Class: DBI::Adonet::PreparedStatement
- Inherits:
-
SQL::PreparedStatement
- Object
- SQL::PreparedStatement
- DBI::Adonet::PreparedStatement
- Defined in:
- lib/dbd/adonet/prepared_statement.rb
Instance Method Summary collapse
-
#bind ⇒ Object
(also: #to_s)
attempts to bind the arguments in
args
to this statement.
Instance Method Details
#bind ⇒ Object 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 |