1. 30 9月, 2013 1 次提交
  2. 12 9月, 2013 1 次提交
    • R
      Check if the SQL is not a prepared statement · f13b2785
      Rafael Mendonça França 提交于
      When the adapter is with prepared statement disabled and the binds array
      is not empty the connection adapter will try to set the binds values and
      will fail. Now we are checking if the adapter has the prepared statement
      disabled.
      
      Fixes #12023
      f13b2785
  3. 12 8月, 2013 1 次提交
  4. 09 8月, 2013 1 次提交
  5. 08 8月, 2013 1 次提交
  6. 17 7月, 2013 1 次提交
  7. 16 7月, 2013 1 次提交
    • A
      Unifies mysql and mysql2 casting of booleans · 41bd94b7
      awilliams 提交于
      Using the mysql2 adapter, boolean values were sometimes being incorrectly cast
      to 't' or 'f'. This changes the cast to match the mysql adapter behavior, ie 1 and 0.
      41bd94b7
  8. 13 6月, 2013 1 次提交
    • J
      Moving add_column_options! up to SchemaCreation · ea72430b
      jeran 提交于
      removed two instances of add_column_options! from abstract_mysql_adapter
      
      reworked rename_column_sql to remove add_column_options from schema_statements
      
      changed to use new hash syntax.
      ea72430b
  9. 01 5月, 2013 2 次提交
  10. 29 4月, 2013 1 次提交
  11. 01 4月, 2013 1 次提交
  12. 28 3月, 2013 1 次提交
  13. 27 3月, 2013 1 次提交
  14. 26 3月, 2013 2 次提交
  15. 24 3月, 2013 1 次提交
  16. 23 3月, 2013 1 次提交
  17. 08 3月, 2013 1 次提交
  18. 06 3月, 2013 1 次提交
  19. 28 2月, 2013 1 次提交
  20. 25 2月, 2013 1 次提交
  21. 21 2月, 2013 1 次提交
    • Y
      also rename indexes when a table or column is renamed · 39eef1a5
      Yves Senn 提交于
      When a table or a column is renamed related indexes kept their name. This will lead to confusing names. This patch renames related indexes when a column or a table is renamed. Only indexes with names generated by rails will be renamed. Indexes with custom names will not be renamed.
      39eef1a5
  22. 16 2月, 2013 2 次提交
  23. 14 2月, 2013 1 次提交
  24. 12 2月, 2013 1 次提交
  25. 07 2月, 2013 1 次提交
  26. 29 12月, 2012 1 次提交
  27. 23 12月, 2012 1 次提交
  28. 09 12月, 2012 1 次提交
    • A
      Session variables for mysql, mysql2, and postgresql adapters can be set · 97d06e8c
      Aaron Stone 提交于
      in the new 'variables:' hash in each database config section in database.yml.
      The key-value pairs of this hash will be sent in a 'SET key = value, ...'
      query on new database connections.
      
      The configure_connection methods from mysql and mysql2 into are
      consolidated into the abstract_mysql base class.
      97d06e8c
  29. 28 10月, 2012 1 次提交
  30. 24 10月, 2012 1 次提交
  31. 19 10月, 2012 1 次提交
  32. 05 10月, 2012 2 次提交
  33. 29 9月, 2012 1 次提交
    • J
      Support for partial inserts. · 144e8691
      Jon Leighton 提交于
      When inserting new records, only the fields which have been changed
      from the defaults will actually be included in the INSERT statement.
      The other fields will be populated by the database.
      
      This is more efficient, and also means that it will be safe to
      remove database columns without getting subsequent errors in running
      app processes (so long as the code in those processes doesn't
      contain any references to the removed column).
      144e8691
  34. 21 9月, 2012 1 次提交
    • J
      Support for specifying transaction isolation level · 392eeecc
      Jon Leighton 提交于
      If your database supports setting the isolation level for a transaction,
      you can set it like so:
      
        Post.transaction(isolation: :serializable) do
          # ...
        end
      
      Valid isolation levels are:
      
      * `:read_uncommitted`
      * `:read_committed`
      * `:repeatable_read`
      * `:serializable`
      
      You should consult the documentation for your database to understand the
      semantics of these different levels:
      
      * http://www.postgresql.org/docs/9.1/static/transaction-iso.html
      * https://dev.mysql.com/doc/refman/5.0/en/set-transaction.html
      
      An `ActiveRecord::TransactionIsolationError` will be raised if:
      
      * The adapter does not support setting the isolation level
      * You are joining an existing open transaction
      * You are creating a nested (savepoint) transaction
      
      The mysql, mysql2 and postgresql adapters support setting the
      transaction isolation level. However, support is disabled for mysql
      versions below 5, because they are affected by a bug
      (http://bugs.mysql.com/bug.php?id=39170) which means the isolation level
      gets persisted outside the transaction.
      392eeecc
  35. 03 8月, 2012 1 次提交
  36. 14 7月, 2012 1 次提交