lib/uses_stored_procedures.rb
# Return the SQL verb for calling a stored procedure.
Return the SQL verb for calling a stored procedure.
Return the SQL verb for calling a stored procedure .
def call_stored_proc_verb()
      case ActiveRecord::Base.connection.adapter_name.to_sym
      when :Mysql2, :MySQL
        'call'
      when :PostgreSQL
        'select'
      when :SQLServer
        'exec'
      else
        raise "uses_stored_procedurs does not support your connection adapter"
      end        
    end
def call_stored_proc_verb ( ) case ActiveRecord :: Base . connection . adapter_name . to_sym when :Mysql2 , :MySQL 'call' when :PostgreSQL 'select' when :SQLServer 'exec' else raise "uses_stored_procedurs does not support your connection adapter" end end
Return the SQL verb for calling a stored procedure.
Return the SQL verb for calling a stored procedure .