omarqureshi
Not a member
omarqureshi's latest activity
Sunday, April 17 2011
-
omarqureshi commented at 4:09 PMI wonder if instead of the primary key fix being applied here, it should be applied closer to the adaptor - as in something like
(row && row.first) || "id"wi...
-
- Title changed from Arel 2 does not work well with views on postgresql to The postgres connection adaptor does not correctly identify Primary Keys in Views and Inherited Tables
-
- Tag changed from database views, activerecord, arel, arel2, postgresql to database views, activerecord, arel, arel2, postgres-inherited-tables, postgresql
-
- Tag changed from database views, arel, arel2, postgresql to database views, activerecord, arel, arel2, postgresql
Problem method found:
def primary_key(table) row = exec_query(<<-end_sql, 'SCHEMA', [[nil, table]]).rows.first SELECT DISTINCT(attr.attname) ...
Tuesday, April 12 2011
-
omarqureshi commented at 3:14 PMThis is also a problem if you are using inherited tables. Although in that case, you can get by, through using set_primary_key "id", for views however, it doesn...
Sunday, January 16 2011
5951
Using :joins when calling first on an association ignores joins
was updated
in Ruby on Rails
-
omarqureshi commented at 1:04 AMSorry, have come back to this after a long hiatus.
Isn't this what is required? The problem is the joins, not the select clause and infact, is probably preferab...
Thursday, November 11 2010
5951
Using :joins when calling first on an association ignores joins
was created
in Ruby on Rails
-
omarqureshi created the ticket at 9:34 AMRunning the following test:
def test_using_joins_on_many_association_with_has_one_join parrot = Parrot.create!(:name => "Petal") pirate_with_a_ship =...
Friday, October 22 2010
Monday, October 11 2010
Monday, September 27 2010
5669
Setting session and cookie variables in same request breaks session in follow...
was updated
in Ruby on Rails
-
- Tag changed from rails 2.3.9, active_record_store, cookies, sessions to rails 2.3.9, active_record_store, cookies, patch, sessions