1. 14 12月, 2013 1 次提交
  2. 10 12月, 2013 1 次提交
  3. 29 11月, 2013 4 次提交
  4. 11 11月, 2013 1 次提交
  5. 06 11月, 2013 1 次提交
    • D
      Don't swallow exceptions in transctional statements · 5d870c92
      Doug Barth 提交于
      The MySQL connection adapater swallows all StandardError exceptions,
      which includes Mysql::Error and Mysql2::Error. The comment in the
      exception clause claims errors thrown here indicate that transactions
      aren't supported by the server but that isn't necessarily true. It's
      possible the MySQL server has gone away and swallowing a failed commit
      may let the application return a successful response when the data has
      not been saved. Also, replication libraries like Galera require that the
      application handle exceptions thrown at BEGIN/COMMIT.
      
      I'm unable to determine what version of MySQL threw an exception for
      transactional statements. I tried as far back as 3.23.49 with InnoDB
      disabled but BEGIN & COMMIT statements do not throw an error. If there's
      a real case for this logic to continue, we could instead push this
      behavior into a configuration setting.
      
      The exception swallowing has been there since the beginning:
      db045dbb
      5d870c92
  6. 30 9月, 2013 2 次提交
  7. 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
  8. 12 8月, 2013 1 次提交
  9. 09 8月, 2013 1 次提交
  10. 08 8月, 2013 1 次提交
  11. 17 7月, 2013 1 次提交
  12. 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
  13. 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
  14. 01 5月, 2013 2 次提交
  15. 29 4月, 2013 1 次提交
  16. 01 4月, 2013 1 次提交
  17. 28 3月, 2013 1 次提交
  18. 27 3月, 2013 1 次提交
  19. 26 3月, 2013 2 次提交
  20. 24 3月, 2013 1 次提交
  21. 23 3月, 2013 1 次提交
  22. 08 3月, 2013 1 次提交
  23. 06 3月, 2013 1 次提交
  24. 28 2月, 2013 1 次提交
  25. 25 2月, 2013 1 次提交
  26. 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
  27. 16 2月, 2013 2 次提交
  28. 14 2月, 2013 1 次提交
  29. 12 2月, 2013 1 次提交
  30. 07 2月, 2013 1 次提交
  31. 29 12月, 2012 1 次提交
  32. 23 12月, 2012 1 次提交
  33. 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