1. 15 3月, 2014 1 次提交
  2. 18 1月, 2014 1 次提交
  3. 17 1月, 2014 1 次提交
  4. 24 3月, 2013 1 次提交
  5. 14 10月, 2012 1 次提交
    • A
      #7914 get default value when type uses schema name · 2da85edd
      Arturo Pie 提交于
      PostgreSQL adapter properly parses default values when using multiple
      schemas and domains.
      
      When using domains across schemas, PostgresSQL prefixes the type of the
      default value with the name of the schema where that type (or domain) is.
      
      For example, this query:
      ```
      SELECT a.attname, d.adsrc
      FROM pg_attribute a LEFT JOIN pg_attrdef d
      ON a.attrelid = d.adrelid AND a.attnum = d.adnum
      WHERE a.attrelid = "defaults"'::regclass
      AND a.attnum > 0 AND NOT a.attisdropped
      ORDER BY a.attnum;
      ```
      
      could return something like "'<default_value>'::pg_catalog.text" or
      "(''<default_value>'::pg_catalog.text)::text" for the text columns with
      defaults.
      
      I modified the regexp used to parse this value so that it ignores
      anything between ':: and \b(?:character varying|bpchar|text), and it
      allows to have optional parens like in the above second example.
      2da85edd
  6. 12 10月, 2012 1 次提交
  7. 08 3月, 2012 1 次提交
  8. 07 3月, 2012 1 次提交
  9. 20 2月, 2012 1 次提交
  10. 04 12月, 2011 1 次提交
  11. 30 11月, 2011 1 次提交
  12. 17 11月, 2011 1 次提交
  13. 07 11月, 2011 1 次提交
  14. 05 11月, 2011 1 次提交
  15. 19 10月, 2011 1 次提交
  16. 06 10月, 2011 1 次提交
  17. 08 9月, 2011 1 次提交
  18. 09 7月, 2011 1 次提交
  19. 08 7月, 2011 1 次提交
  20. 19 6月, 2011 1 次提交
  21. 11 6月, 2011 2 次提交
  22. 10 6月, 2011 2 次提交
    • P
      apply private method indentation convention · 019c2636
      Paul Gallagher 提交于
      * tidy test code and fix my typo 
      019c2636
    • P
      Improve PostgreSQL adapter schema-awareness · 5c7f8c92
      Paul Gallagher 提交于
      * table_exists? scoped by schema search path unless schema is explicitly named. Added tests and doc to clarify the behaviour
      * extract_schema_and_table tests and implementation extended to cover all cases
      * primary_key does not ignore schema information
      * add current_schema and schema_exists? methods
      * more robust table referencing in insert_sql and sql_for_insert methods
      5c7f8c92
  23. 07 6月, 2011 1 次提交
  24. 05 6月, 2011 1 次提交
    • J
      Refactor Active Record test connection setup. Please see the... · 253bb6b9
      Jon Leighton 提交于
      Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
      253bb6b9
  25. 26 6月, 2010 2 次提交
  26. 19 5月, 2010 1 次提交
  27. 12 4月, 2010 1 次提交
  28. 21 4月, 2009 2 次提交
  29. 05 4月, 2009 1 次提交
  30. 03 3月, 2008 1 次提交
  31. 22 1月, 2008 1 次提交
  32. 18 1月, 2008 1 次提交
  33. 05 1月, 2008 1 次提交
  34. 30 9月, 2005 1 次提交
  35. 13 6月, 2005 1 次提交
    • J
      r1278@iwill: jeremy | 2005-06-12 05:11:48 -0700 · 1fde44bf
      Jeremy Kemper 提交于
       Branch for PostgreSQL schema.  Ticket #827.
       r1281@iwill:  jeremy | 2005-06-12 19:06:43 -0700
       remove search_path from PostgreSQL db definition
       r1282@iwill:  jeremy | 2005-06-12 19:07:50 -0700
       Rakefile support for database-specific tests.
       r1283@iwill:  jeremy | 2005-06-12 19:10:18 -0700
       Add schema_search_path attribute to PostgreSQL adapter.  Replace table_structure with column_definitions which finds the given table_name in the schema search path.
       r1284@iwill:  jeremy | 2005-06-12 19:12:10 -0700
       Unit test PostgreSQL schema search path.
       r1285@iwill:  jeremy | 2005-06-12 19:12:20 -0700
       Changelog entry.
       r1286@iwill:  jeremy | 2005-06-12 20:08:20 -0700
       Don't try to quote schema names.  Include a reference to the PostgreSQL schema docs.
       r1287@iwill:  jeremy | 2005-06-12 20:16:07 -0700
       SchemasTest -> SchemaTest
      
      
      git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1407 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
      1fde44bf