1. 08 10月, 2016 1 次提交
  2. 14 9月, 2016 1 次提交
  3. 06 9月, 2016 1 次提交
  4. 01 9月, 2016 1 次提交
    • S
      Revert "Extract `PredicateBuilder::CaseSensitiveHandler`" · 84efde74
      Sean Griffin 提交于
      This reverts commit 3a1f6fe7.
      
      This commit takes the code in a direction that I am looking to avoid.
      The predicate builder should be purely concerned with AST construction
      as it matters to methods like `where`. Things like case sensitivity
      should continue to be handled elsewhere.
      84efde74
  5. 19 8月, 2016 1 次提交
    • R
      Remove text default treated as an empty string in non-strict mode · 99cb16a2
      Ryuta Kamizono 提交于
      Strict mode controls how MySQL handles invalid or missing values in
      data-change statements such as INSERT or UPDATE. If strict mode is not
      in effect, MySQL inserts adjusted values for invalid or missing values
      and produces warnings.
      
      ```ruby
        def test_mysql_not_null_defaults_non_strict
          using_strict(false) do
            with_mysql_not_null_table do |klass|
              record = klass.new
              assert_nil record.non_null_integer
              assert_nil record.non_null_string
              assert_nil record.non_null_text
              assert_nil record.non_null_blob
      
              record.save!
              record.reload
      
              assert_equal 0,  record.non_null_integer
              assert_equal "", record.non_null_string
              assert_equal "", record.non_null_text
              assert_equal "", record.non_null_blob
            end
          end
        end
      ```
      
      It is inconsistent with other types that only text/blob defaults treated
      as an empty string. This commit fixes the inconsistency.
      99cb16a2
  6. 16 8月, 2016 2 次提交
  7. 14 8月, 2016 1 次提交
  8. 07 8月, 2016 5 次提交
  9. 06 8月, 2016 1 次提交
  10. 05 8月, 2016 1 次提交
  11. 28 7月, 2016 2 次提交
  12. 25 7月, 2016 1 次提交
  13. 24 7月, 2016 1 次提交
  14. 02 7月, 2016 1 次提交
  15. 10 6月, 2016 1 次提交
  16. 07 6月, 2016 2 次提交
  17. 31 5月, 2016 1 次提交
    • R
      Do not include default column limit in schema.rb · 706f7e9c
      Ryuta Kamizono 提交于
      Follow up of #20815.
      
      ```ruby
      class CreatePeople < ActiveRecord::Migration[5.0]
        def change
          create_table :people do |t|
            t.integer :int
            t.bigint :bint
            t.text :txt
            t.binary :bin
          end
        end
      end
      ```
      
      Result.
      
      In postgresql and sqlite3 adapters:
      
      ```ruby
      ActiveRecord::Schema.define(version: 20160531141018) do
      
        create_table "people", force: :cascade do |t|
          t.integer "int"
          t.bigint  "bint"
          t.text    "txt"
          t.binary  "bin"
        end
      
      end
      ```
      
      In mysql2 adapter:
      
      ```ruby
      ActiveRecord::Schema.define(version: 20160531141018) do
      
        create_table "people", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
          t.integer "int"
          t.bigint  "bint"
          t.text    "txt",  limit: 65535
          t.binary  "bin",  limit: 65535
        end
      
      end
      ```
      
      After this patch:
      
      ```ruby
      ActiveRecord::Schema.define(version: 20160531141018) do
      
        create_table "people", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4" do |t|
          t.integer "int"
          t.bigint  "bint"
          t.text    "txt"
          t.binary  "bin"
        end
      
      end
      ```
      706f7e9c
  18. 24 5月, 2016 1 次提交
  19. 21 5月, 2016 1 次提交
  20. 19 5月, 2016 1 次提交
  21. 10 5月, 2016 1 次提交
  22. 02 5月, 2016 1 次提交
  23. 30 4月, 2016 1 次提交
  24. 25 4月, 2016 2 次提交
  25. 21 4月, 2016 1 次提交
  26. 20 4月, 2016 1 次提交
  27. 19 4月, 2016 1 次提交
  28. 16 4月, 2016 1 次提交
  29. 14 4月, 2016 1 次提交
    • V
      Include running mariadb on travis · bbb8f518
      Vipul A M 提交于
      - Specify we want to run on latest stable ruby for mariadb
      
      - change in runs of builds
      
      Make mariadb? method publicly available
      bbb8f518
  30. 13 4月, 2016 1 次提交
    • V
      :nodoc: version method. · 1eb95899
      Vipul A M 提交于
       Reason:
       - Its not publicly used method.
       - Exposing it makes an assumption that other adapters support it based on its usage - ActiveRecord::Base.connection.version
      
       [ci skip]
      1eb95899
  31. 09 4月, 2016 1 次提交
    • J
      Support microsecond datetime precision on MariaDB 5.3+. · 2224d06c
      Jeremy Daer 提交于
      We support microsecond datetime precision for MySQL 5.6.4+. MariaDB has
      supported it since 5.3.0, but even 10.x versions return a compatible
      version string like `5.5.5-10.1.8-MariaDB-log` which we parse as 5.5.5,
      before MySQL supported microsecond precision.
      
      Specialize our version check to account for MariaDB to fix.
      2224d06c
  32. 06 4月, 2016 1 次提交