Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Max Lapshin's latest activity

Monday, April 20 2009
2400 [Patch] Correct index column order for PostgreSQL was updated in Ruby on Rails
  • Max Lapshin
    • Assigned user set to Tarmo Tänav
    by Max Lapshin at 5:51 PM

    Tarmo, maybe close it as duplicate ticket?

  • Max Lapshin
    • Tag changed from 2.3.2, activerecord, active_record, postgresql to 2.3.2, activerecord, active_record, duplicate, postgresql
    by Max Lapshin at 5:38 PM
2419 [Patch] Raise specific exceptions for violated database constraints was updated in Ruby on Rails
  • Max Lapshin
    Max Lapshin commented at 5:51 PM

    It seems, that Postgresql libpq doesn't return error codes at all

1333 Partial indices using add_index in DB migrations was updated in Ruby on Rails
  • Max Lapshin
    Max Lapshin commented at 5:35 PM

    Jason. It is very easy to monkey patch schema adaptor to add this functionality, but full patch is rather hard, because database driver must dump properly data ...

1274 Add support for :order => :random in queries was updated in Ruby on Rails
  • Max Lapshin
    Max Lapshin commented at 5:22 PM

    Norman. I advise you to add function RAND into postgresql and RAND into sqlite. And I'm also against including this fix into Rails. Use Postgres to make workaro...

2445 migration fail with postgresql and ruby 1.9.1 was updated in Ruby on Rails
  • Max Lapshin
    Max Lapshin commented at 5:17 PM

    It is even impossible to read stacktrace. If you wish this bug to be fixed, try to clear your stacktrace.

2418 PostgreSQL schema dumper does not support capitalized table names was updated in Ruby on Rails
  • Max Lapshin
    • Tag changed from activerecord, adapters, camelcase, patch, postgresql, schema, tables to activerecord, adapters, bug, camelcase, patch, postgresql, schema, tables, verified
    • Assigned user set to Tarmo Tänav
    by Max Lapshin at 5:16 PM

    I was afraid, that this code will fail, when declaring table in other schema, but it worked for me! Checked against post-2.3.2 master

    P.S. Am I right, changing ...

2402 AR::Migrations not quoting index names? was updated in Ruby on Rails
  • Max Lapshin
    • Tag changed from active_record, bug, defect, migrations, patch, postgresql to 2.3.2, active_record, bug, defect, index, migrations, patch, postgresql, test
    • Assigned user set to Tarmo Tänav
    by Max Lapshin at 5:10 PM

    I've added failing test and fixed remove_index in Postgres adapter. Previous patch didn't handled issue, when multischema environment, but I've used my previous...

2515 db:schema:dump with PostgreSQLAdapter dumps multiple column indexes in undefi... was updated in Ruby on Rails
  • Max Lapshin
    Max Lapshin commented at 4:55 PM

    Tarmo, this bug seems to be severe, because it can really break indexes on database.

  • Max Lapshin
    • Tag changed from active_record, postgres to 2.3.2, active_record, bug, index, patch, postgres, schema_dumper, test
    • Assigned user set to Tarmo Tänav
    by Max Lapshin at 4:49 PM

    I've added failing test, which really fails only for Postgresql and fixed Postgresql adapter. Now everything is OK.