- 01 3月, 2013 1 次提交
-
-
由 kennyj 提交于
-
- 28 2月, 2013 1 次提交
-
-
由 Yves Senn 提交于
Closes #9480. We use `TableDefinition` for `#create_table` and `Table` for `#change_table`. The PostgreSQL sepcifc types were only defined on `TableDefinition` so I also added them to `Table`.
-
- 25 2月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
We should only type cast when we need to use. Related to 4b005fb3
-
- 16 2月, 2013 2 次提交
-
-
由 Jon Leighton 提交于
It was supposed to be removed by the preceding two reversions but I did them in the wrong order.
-
由 Jon Leighton 提交于
This reverts commit 5d528f83. Relates to f8c8ad56 which is also getting reverted due to failing test.
-
- 14 2月, 2013 1 次提交
-
-
由 Sam Ruby 提交于
-
- 12 2月, 2013 1 次提交
-
-
由 Ranjay Krishna 提交于
-
- 07 2月, 2013 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Justin George 提交于
add ActiveRecord::AbstractAdapter#extensions and ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#extensions to allow dumping of enabled extensions to schema.rb, add ActiveRecord::SchemaDumper#extensions to dump extensions to schema.rb
-
- 30 1月, 2013 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 29 1月, 2013 3 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
extensions
-
由 Aaron Patterson 提交于
-
- 24 1月, 2013 1 次提交
-
-
由 Andrew White 提交于
Travis only has PostgreSQL 9.1.x but 9.2 is required for range datatypes.
-
- 23 1月, 2013 1 次提交
-
-
由 bUg 提交于
-
- 07 1月, 2013 2 次提交
-
-
由 Rafael Mendonça França 提交于
All the valids parameters for libpq are used. See http://www.postgresql.org/docs/9.1/static/libpq-connect.html for the full list Fixes #8784
-
由 Rafael Mendonça França 提交于
-
- 06 1月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 05 1月, 2013 1 次提交
-
-
由 Rob Worley 提交于
-
- 16 12月, 2012 1 次提交
-
-
由 Alexey 提交于
-
- 09 12月, 2012 1 次提交
-
-
由 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.
-
- 14 10月, 2012 3 次提交
-
-
由 Arturo Pie 提交于
Remove parsing of character type default values for 8.1 formatting since Rails doesn't support postgreSQL 8.1 anymore. Remove misleading comment unrelated to code.
-
由 Arturo Pie 提交于
According to postgreSQL documentation: (http://www.postgresql.org/docs/8.2/static/catalog-pg-attrdef.html) we should not be using 'adsrc' field because this field is unaware of outside changes that could affect the way that default values are represented. Thus, I changed the queries to use "pg_get_expr(adbin, adrelid)" instead of the historical "adsrc" field.
-
由 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.
-
- 09 10月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 21 9月, 2012 1 次提交
-
-
由 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.
-
- 15 9月, 2012 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
This avoids us having to manually increment and decrement it.
-
- 14 9月, 2012 1 次提交
-
-
由 Dan McClain 提交于
Having column related schema dumper code in the AbstractAdapter. The code remains the same, but by placing it in the AbstractAdapter, we can then overwrite it with Adapter specific methods that will help with Adapter specific data types. The goal of moving this code here is to create a new migration key for PostgreSQL's array type. Since any datatype can be an array, the goal is to have ':array => true' as a migration option, turning the datatype into an array. I've implemented this in postgres_ext, the syntax is shown here: https://github.com/dockyard/postgres_ext#arrays Adds array migration support Adds array_test.rb outlining the test cases for array data type Adds pg_array_parser to Gemfile for testing Adds pg_array_parser to postgresql_adapter (unused in this commit) Adds schema dump support for arrays Adds postgres array type casting support Updates changelog, adds note for inet and cidr support, which I forgot to add before Removing debugger, Adds pg_array_parser to JRuby platform Removes pg_array_parser requirement, creates ArrayParser module used by PostgreSQLAdapter
-
- 07 9月, 2012 1 次提交
-
-
由 Yves Senn 提交于
-
- 06 9月, 2012 1 次提交
-
-
由 Dickson S. Guedes 提交于
This implements the support to encode/decode JSON data to/from database and creating columns of type JSON using a native type [1] supported by PostgreSQL from version 9.2. [1] http://www.postgresql.org/docs/9.2/static/datatype-json.html
-
- 05 9月, 2012 1 次提交
-
-
由 Konstantin Shabanov 提交于
-
- 03 9月, 2012 1 次提交
-
-
由 Anuj Dutta 提交于
-
- 22 8月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 03 8月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
-
- 17 7月, 2012 2 次提交
-
-
由 Steve Jorgensen 提交于
-
由 Steve Jorgensen 提交于
Exception.result is nil when attempting a query after PostgreSQL disconnect, resulting in new exception: NoMethodError: undefined method `error_field' for nil:NilClass
-
- 01 7月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 29 6月, 2012 1 次提交
-
-
由 kennyj 提交于
-