Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7161: connection_adapters.patch

File connection_adapters.patch, 3.3 kB (added by halorgium, 2 years ago)
  • activerecord/lib/active_record/connection_adapters/frontbase_adapter.rb

    old new  
    271271        true 
    272272      end 
    273273 
    274       def native_database_types #:nodoc:        { 
     274      def native_database_types #:nodoc: 
     275        { 
    275276          :primary_key    => "INTEGER DEFAULT UNIQUE PRIMARY KEY", 
    276277          :string         => { :name => "VARCHAR", :limit => 255 }, 
    277278          :text           => { :name => "CLOB" }, 
     
    563564        execute "SET COMMIT TRUE" 
    564565      end 
    565566 
    566       def add_limit_offset!(sql, options) #:nodoc:        if limit = options[:limit] 
     567      def add_limit_offset!(sql, options) #:nodoc: 
     568        if limit = options[:limit] 
    567569          offset = options[:offset] || 0 
    568570         
    569571# Here is the full syntax FrontBase supports: 
  • activerecord/lib/active_record/connection_adapters/mysql_adapter.rb

    old new  
    160160        true 
    161161      end 
    162162 
    163       def native_database_types #:nodoc:        { 
     163      def native_database_types #:nodoc: 
     164        { 
    164165          :primary_key => "int(11) DEFAULT NULL auto_increment PRIMARY KEY", 
    165166          :string      => { :name => "varchar", :limit => 255 }, 
    166167          :text        => { :name => "text" }, 
     
    277278      end 
    278279 
    279280 
    280       def add_limit_offset!(sql, options) #:nodoc:        if limit = options[:limit] 
     281      def add_limit_offset!(sql, options) #:nodoc: 
     282        if limit = options[:limit] 
    281283          unless offset = options[:offset] 
    282284            sql << " LIMIT #{limit}" 
    283285          else 
  • activerecord/lib/active_record/connection_adapters/oracle_adapter.rb

    old new  
    134134          true 
    135135        end 
    136136 
    137         def native_database_types #:nodoc:          { 
     137        def native_database_types #:nodoc: 
     138          { 
    138139            :primary_key => "NUMBER(38) NOT NULL PRIMARY KEY", 
    139140            :string      => { :name => "VARCHAR2", :limit => 255 }, 
    140141            :text        => { :name => "CLOB" }, 
  • activerecord/lib/active_record/connection_adapters/openbase_adapter.rb

    old new  
    122122 
    123123      # DATABASE STATEMENTS ====================================== 
    124124 
    125       def add_limit_offset!(sql, options) #:nodoc:        if limit = options[:limit] 
     125      def add_limit_offset!(sql, options) #:nodoc: 
     126        if limit = options[:limit] 
    126127          unless offset = options[:offset] 
    127128            sql << " RETURN RESULTS #{limit}" 
    128129          else