1. 24 4月, 2016 6 次提交
  2. 23 4月, 2016 3 次提交
  3. 21 4月, 2016 4 次提交
  4. 20 4月, 2016 5 次提交
  5. 19 4月, 2016 3 次提交
  6. 18 4月, 2016 2 次提交
  7. 17 4月, 2016 1 次提交
  8. 16 4月, 2016 2 次提交
  9. 15 4月, 2016 1 次提交
    • R
      Should keep quoting behaivor of a time column value in sqlite3 adapter · 73af7945
      Ryuta Kamizono 提交于
      Follow up to #24542.
      
      In MySQL and PostgreSQL, a time column value is saved as ignored the
      date part of it. But in SQLite3, a time column value is saved as a string.
      
      We should keep previous quoting behavior in sqlite3 adapter.
      
      ```
      sqlite> CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "start" time(0), "finish" time(4));
      sqlite> INSERT INTO "foos" ("start", "finish") VALUES ('2000-01-01 12:30:00', '2000-01-01 12:30:00.999900');
      sqlite> SELECT "foos".* FROM "foos";
      1|2000-01-01 12:30:00|2000-01-01 12:30:00.999900
      sqlite> SELECT  "foos".* FROM "foos" WHERE "foos"."start" = '2000-01-01 12:30:00' LIMIT 1;
      1|2000-01-01 12:30:00|2000-01-01 12:30:00.999900
      sqlite> SELECT  "foos".* FROM "foos" WHERE "foos"."start" = '12:30:00' LIMIT 1;
      sqlite>
      ```
      73af7945
  10. 14 4月, 2016 3 次提交
    • R
      Add `quoted_time` for truncating the date part of a time column value · 28ec8c4a
      Ryuta Kamizono 提交于
      Context #24522.
      
      TIME column on MariaDB doesn't ignore the date part of the string when
      it coerces to time.
      
      ```
      root@localhost [test] > CREATE TABLE `foos` (`id` int AUTO_INCREMENT PRIMARY KEY, `start` time(0), `finish` time(4)) ENGINE=InnoDB;
      Query OK, 0 rows affected (0.02 sec)
      
      root@localhost [test] > INSERT INTO `foos` (`start`, `finish`) VALUES ('2000-01-01 12:30:00', '2000-01-01 12:30:00.999900');
      Query OK, 1 row affected, 2 warnings (0.00 sec)
      
      Note (Code 1265): Data truncated for column 'start' at row 1
      Note (Code 1265): Data truncated for column 'finish' at row 1
      root@localhost [test] > SELECT `foos`.* FROM `foos`;
      +----+----------+---------------+
      | id | start    | finish        |
      +----+----------+---------------+
      |  1 | 12:30:00 | 12:30:00.9999 |
      +----+----------+---------------+
      1 row in set (0.00 sec)
      
      root@localhost [test] > SELECT  `foos`.* FROM `foos` WHERE `foos`.`start` = '2000-01-01 12:30:00' LIMIT 1;
      Empty set (0.00 sec)
      
      root@localhost [test] > SELECT  `foos`.* FROM `foos` WHERE `foos`.`start` = '12:30:00' LIMIT 1;
      +----+----------+---------------+
      | id | start    | finish        |
      +----+----------+---------------+
      |  1 | 12:30:00 | 12:30:00.9999 |
      +----+----------+---------------+
      1 row in set (0.00 sec)
      ```
      28ec8c4a
    • 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
    • S
      Properly serialize all JSON primitives in the AR JSON type · efaa6e4f
      Sean Griffin 提交于
      Previously we were assuming that the only valid types for encoding were
      arrays and hashes. However, any JSON primitive is an accepted value by
      both PG and MySQL.
      
      This does involve a minor breaking change in the handling of `default`
      in the schema dumper. This is easily worked around, as passing a
      hash/array literal would have worked fine in previous versions of Rails.
      However, because of this, I will not be backporting this to 4.2 or
      earlier.
      
      Fixes #24234
      efaa6e4f
  11. 13 4月, 2016 2 次提交
    • 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
    • S
      Allow symbols using "dot notation" to be passed to where · 714ab8cb
      Sean Griffin 提交于
      In 04ac5655 I assumed that we would
      never want to pass the "table_name.column_name" form to where with a
      symbol. However, in Ruby 2.2 and later, you can quote symbols using the
      new hash syntax, so it's a semi-reasonable thing to do if we want to
      support the dot notation (which I'd rather deprecate, but that would be
      too painful of a migration).
      
      Instead we've changed the definition of "this is a table name with a
      dot" to when the value associated is a hash. It would make very little
      sense to write `where("table_name.column_name": { foo: :bar })` in any
      scenario (other than equality for a JSON column which we don't support
      through `where` in this way).
      
      Close #24514.
      714ab8cb
  12. 12 4月, 2016 1 次提交
  13. 11 4月, 2016 1 次提交
  14. 10 4月, 2016 2 次提交
  15. 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
  16. 06 4月, 2016 3 次提交