- 09 5月, 2014 1 次提交
-
-
由 Vijay Dev 提交于
-
- 08 5月, 2014 1 次提交
-
-
由 schneems 提交于
-
- 04 5月, 2014 1 次提交
-
-
由 Yves Senn 提交于
-
- 25 4月, 2014 1 次提交
-
-
由 Jefferson Lai 提交于
The PG Adapter should use `:datetime` consistently instead of mapping mispellings to `:timestamp`. See #14513
-
- 18 4月, 2014 1 次提交
-
-
由 Kris Selden 提交于
Optimize select_value, select_values, select_rows and dry up checking whether to exec with cache for Postgresql adapter Reduces creating unused objects, with the most dramatic reduction in select_values which used to map(&:first) an array of single element arrays.
-
- 16 4月, 2014 1 次提交
-
-
由 Eric Chahin 提交于
Changed change_column in PG schema_statements.rb to make sure that the uuid_generate function was not being quoted.
-
- 11 4月, 2014 1 次提交
-
-
由 Yves Senn 提交于
[Yves Senn & Matthew Draper]
-
- 07 4月, 2014 1 次提交
-
-
由 Matthew Draper 提交于
In our normal usage, it's rare for this to make a difference... but is more technically correct. As well as a spec that proves this is a good idea, let's also add a more sane-looking one that just covers basic to_sql functionality. There aren't many places where we actually use escape_bytea, but that's one that won't be going away.
-
- 03 4月, 2014 1 次提交
-
-
由 Dmitry Lavrov 提交于
-
- 02 4月, 2014 1 次提交
-
-
由 Dave Lee 提交于
Expand the query used in #table_exists? to include materialized views in the kinds of relations it searches.
-
- 01 4月, 2014 1 次提交
-
-
由 Yves Senn 提交于
I ran the whole test suite and compared the old to the new types. Following is the list of types that did change with this patch: ``` DIFFERENT TYPE FOR mood: NEW: enum, BEFORE: DIFFERENT TYPE FOR floatrange: NEW: floatrange, BEFORE: float ``` The `floatrange` is a custom type. The old type `float` was simply a coincidence form the name `floatrange` and our type-guessing.
-
- 31 3月, 2014 1 次提交
-
-
由 Yves Senn 提交于
We have `connection_adapters/column.rb` so it's easier to remember that the column in in a separate file.
-
- 20 3月, 2014 1 次提交
-
-
由 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.
-
- 11 3月, 2014 1 次提交
-
-
由 lsylvester 提交于
citext makes it possible to use AR Hash finders for case-insensitive matching as sql UPPER/LOWER functions are not needed.
-
- 04 3月, 2014 1 次提交
-
-
由 Dieter Komendera 提交于
-
- 23 2月, 2014 3 次提交
-
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
The Ruby Range object does not support excluding beginnings. We currently support excluding beginnings for some subtypes using manually by incrementing them (now using the `#succ` method). This is approach is flawed as it's not equal to an excluding beginning. This commit deprecates the current support for excluding beginnings. It also raises an `ArgumentError` for subtypes that do not implement the `succ` method. This is a temporary solution to get rid of the broken state. We might still add complete support for excluding beginnings afterwards. (Probably with a new `PGRange` object, which acts like a `Range` but has excluding beginnings.
-
由 Yves Senn 提交于
This gets AR working with custom defined range types. It also removes the need for subtype specific branches in `OID::Range`. This expands the interface of all `OID` types with the `infinity` method. It's responsible to provide a value for positive and negative infinity.
-
- 19 2月, 2014 1 次提交
-
-
由 Aaron Patterson 提交于
Thanks Godfrey Chan for reporting this! Fixes: CVE-2014-0080
-
- 17 2月, 2014 1 次提交
-
-
由 Josh Goodall 提交于
We didn't have enough encoding for the wire protocol to store an array of hstore types. So, further encode any hstore that is an array member. Whilst we're here, ensure it's an HashWithIndifferentAccess being returned, to be consistent with other serialized forms, and add testing for arrays of hstore. So now the following migration: enable_extension "hstore" create_table :servers do |t| t.string :name t.hstore :interfaces, array: true end produces a model that can used like this, to store an array of hashes: server = Server.create(name: "server01", interfaces: [ { name: "bge0", ipv4: "192.0.2.2", state: "up" }, { name: "de0", state: "disabled", by: "misha" }, { name: "fe0", state: "up" }, ]) More at http://inopinatus.org/2013/07/12/using-arrays-of-hstore-with-rails-4/
-
- 01 2月, 2014 1 次提交
-
-
由 Mauricio Linhares 提交于
-
- 31 1月, 2014 1 次提交
-
-
由 Arthur Neves 提交于
This was a common pattern: ``` query = author.posts.select(:title) connection.select_one(query) ``` However `.select` returns a ActiveRecord::AssociationRelation, which has the bind information, so we can use that to get the right sql query. Also fix select_rows on postgress and sqlite3 that were not using the binds [fixes #7538] [fixes #12017] [related #13731] [related #12056]
-
- 17 1月, 2014 1 次提交
-
-
由 Jonathan Baudanza 提交于
-
- 23 12月, 2013 1 次提交
-
-
由 Damien Mathieu 提交于
Closes #13444
-
- 06 12月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 05 12月, 2013 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 30 11月, 2013 1 次提交
-
-
由 Akshay Vishnoi 提交于
-
- 17 11月, 2013 1 次提交
-
-
由 Vipul A M 提交于
-
- 10 11月, 2013 3 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
This will make the conditional and to code clear
-
- 25 10月, 2013 2 次提交
-
-
由 Severin Schoepke 提交于
See also commit 5ac2341f
-
- 05 10月, 2013 1 次提交
-
-
由 Aaron Patterson 提交于
This is to be consistent with the way the mysql2 adapter times queries
-
- 30 9月, 2013 2 次提交
- 28 9月, 2013 1 次提交
-
-
由 Marc Lennox 提交于
-
- 12 9月, 2013 1 次提交
-
-
由 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
-
- 27 8月, 2013 1 次提交
-
-
由 Sam 提交于
-
- 26 8月, 2013 1 次提交
-
-
由 Yves Senn 提交于
Closes #11899.
-