1. 04 5月, 2014 1 次提交
  2. 16 4月, 2014 1 次提交
  3. 11 4月, 2014 1 次提交
  4. 02 4月, 2014 1 次提交
  5. 20 3月, 2014 1 次提交
    • J
      Postgres schema: Constrain sequence search classid · 0110d7b7
      Josh Williams 提交于
      The pk_an_sequence_for query previously joined against pg_class's oid
      for rows in pg_depend, but pg_depend's objid may point to other system
      tables, such as pg_attrdef.  If a row in one of those other tables
      coincidentally has the same oid as an (unrelated) sequence, that
      sequence name may be returned instead of the real one.
      
      This ensures that only the pg_depend entries pointing to pg_class are
      considered.
      0110d7b7
  6. 17 1月, 2014 1 次提交
  7. 05 12月, 2013 1 次提交
  8. 16 7月, 2013 1 次提交
  9. 26 6月, 2013 1 次提交
  10. 10 5月, 2013 2 次提交
    • B
      Reject blank order_values within #columns_for_distinct, as the orders aren't... · ec75ff34
      Ben Woosley 提交于
      Reject blank order_values within #columns_for_distinct, as the orders aren't used at all on non-postgres adapters.
      ec75ff34
    • B
      Fix that #exists? can produce invalid SQL: "SELECT DISTINCT DISTINCT" · 15d6e4dc
      Ben Woosley 提交于
      The combination of a :uniq => true association and the #distinct call
      in #construct_limited_ids_condition combine to create invalid SQL, because
      we're explicitly selecting DISTINCT, and also sending #distinct on to AREL,
      via the relation#distinct_value.
      
      Rather than build a select distinct clause in #construct_limited_ids_condition,
      I set #distinct! and pass just the columns into the select statement.
      This requires introducing a #columns_for_distinct method to return the
      select columns but not the statement itself.
      15d6e4dc
  11. 04 5月, 2013 1 次提交
  12. 31 3月, 2013 1 次提交
    • C
      Do not calculate values if they are not going to be used · 7860bf11
      Carlos Antonio da Silva 提交于
      When building the indexes list in PostgreSQL, IndexDefinition objects
      are only created if the query for the related attributes really returns
      something matching the attributes.
      
      In case it does not, the variables for building the definition objects were
      being created but not used.
      7860bf11
  13. 28 3月, 2013 1 次提交
  14. 26 3月, 2013 1 次提交
  15. 24 3月, 2013 1 次提交
  16. 23 3月, 2013 5 次提交
  17. 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
  18. 23 1月, 2013 1 次提交
  19. 16 1月, 2013 1 次提交
    • V
      Don't rely on Hash key's ordering · e1e5f300
      Vitor Baptista 提交于
      If we set encoding latin1 for a PostgreSQL database, it calls
      PostgreSQLAdapter::create_database with options that have,
      among other things:
      
        { 'encoding' => 'latin1' }
      
      Then, we use reverse_merge(:encoding => "utf8") to setup the default
      encoding. In the end, the hash looks like:
      
        { :encoding => 'utf8', 'encoding' => 'latin1' }
      
      The call to options.symbolize_keys calls to_sym on each_key of this
      Hash. It usually means that the encoding passed overwrites the default
      utf8, but it's not guaranteed. So, we shouldn't rely on it.
      
      The same was happening in ActiveRecord::ConnectionHandling.
      e1e5f300
  20. 16 12月, 2012 1 次提交
  21. 05 12月, 2012 2 次提交
  22. 21 11月, 2012 1 次提交
  23. 20 11月, 2012 1 次提交
  24. 24 10月, 2012 1 次提交
  25. 14 10月, 2012 2 次提交
  26. 05 10月, 2012 1 次提交
  27. 15 9月, 2012 2 次提交
  28. 05 9月, 2012 1 次提交