lib/dbd/pg/statement.rb
# prepare the statement at a lower level.
prepare the statement at a lower level.
prepare the statement at a lower level .
def internal_prepare
        if @db["pg_native_binding"]
            unless @prepared
                @stmt = @db._prepare(@stmt_name, translate_param_markers(@sql))
            end
        else
            internal_finish
            @stmt = @db._prepare(@stmt_name, DBI::SQL::PreparedStatement.new(DBI::DBD::Pg, @sql).bind(@bindvars))
        end
        @prepared = true
    end
def internal_prepare if @db [ "pg_native_binding" ] unless @prepared @stmt = @db . _prepare ( @stmt_name , translate_param_markers ( @sql ) ) end else internal_finish @stmt = @db . _prepare ( @stmt_name , DBI :: SQL :: PreparedStatement . new ( DBI :: DBD :: Pg , @sql ) . bind ( @bindvars ) ) end @prepared = true end
prepare the statement at a lower level.
prepare the statement at a lower level .