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.

Activity (RSS)

Tuesday, September 22 2020
20 Temporary Tables Clean Up and Enhancement was updated
  • Simple Jack
    Simple Jack commented at 6:13 AM

    I don't know what the codes are all about. I will just comment to wish you all to be safe and healthy, with our current situation and pandemic it is better to s...

Monday, September 14 2020
18 No 'Date' comparison support ? was updated
  • Simple Jack
    Simple Jack commented at 3:10 AM

    I don't think there's a date comparison with that type of format. You should try a different date format and check if it works. I don't know much about the codi...

Sunday, September 13 2020
24 Rails compatibility issue (regression error) was updated
  • Simple Jack
    Simple Jack commented at 7:06 AM

    I don't know what these codes are about. I didn't even know why I am here in this forum. All I know is I love to play gacha life lunime on my PC. It is an anim...

Tuesday, December 01 2009
11 Trouble with require statements and MySQL Adapter was updated
  • bruce
    • Assigned user cleared.
    by bruce at 1:37 AM

    I installed ar-extensions for the first time today, and in attempting to use on_duplicate_key_update in a rake task I ran smack into this problem.

    I'm using 0.9...

Monday, October 26 2009
5 Postgres problem with import was updated
  • Jens
    • Tag changed from import, postgres to import, patch, postgres
    by Jens at 4:58 AM

    Hi,

    I monkey patched import support for Postgres into ar-extensions.
    Works fine so far (Postgres-8.3 from MacPorts), at least using #import_without_validations_...

Saturday, October 17 2009
5 Postgres problem with import was updated
  • Jens
    Jens commented at 9:22 AM

    Hi,

    please implement postgresql batch imports. I had it working using 0.8.2 by adding something like "def supports_import?; true; end" in the adapter file, but ...

  • Jens
    • Tag changed from csv, import, postgres, rails2.1.0 to import, postgres
    by Jens at 9:22 AM

    Hi,

    please implement postgresql batch imports. I had it working using 0.8.2 by adding something like "def supports_import?; true; end" in the adapter file, but ...

Friday, September 18 2009
11 Trouble with require statements and MySQL Adapter was updated
  • charlesparnot
    charlesparnot commented at 1:12 PM

    I had the same issue with 0.9.2 and running within Rails 2.3.2.

    If I only use "require 'ar-extensions'", no error. If I don't add explicitely the import module ...

Monday, August 17 2009
31 sanitize_sql_from_hash doesn't append nil to values array was created
Wednesday, July 22 2009
28 Rails 2.3.3 sanitize_sq() was updated
  • Zach Dennis
    • State changed from hold to resolved
    by Zach Dennis at 9:58 PM

    fixed in 0.9.2 release

  • Zach Dennis
    • State changed from new to hold
    by Zach Dennis at 11:55 AM

    This is fixed in master. I will release a new gem tonight. Thanks,

29 rails 2.3.3 and has_many was updated
  • Zach Dennis
    • State changed from hold to resolved
    by Zach Dennis at 9:57 PM

    released tonight in 0.9.2 ar-extensions

  • Zach Dennis
    • State changed from new to hold
    • Tag set to rails2.3.3
    by Zach Dennis at 11:55 AM

    This is fixed in master. I will push a new gem release tonight.

Tuesday, July 21 2009
29 rails 2.3.3 and has_many was created
  • user296 (at gmail)
    user296 (at gmail) created the ticket at 3:42 AM

    I found a problem with has_many on rails 2.3.3 (bug not present in 2.3.2).
    Given the following models :

      Dentist < ActiveRecord::Base
        has_many :patients
     ...
Monday, July 06 2009
27 Fail to import record with explicit record ID was updated
  • Jonas Grimfelt
    Jonas Grimfelt commented at 1:03 PM

    Ignore this, it's an Rails ActiveRecord issue...a bit stupid convention not being able to save ID without before_filters. =/

  • Jonas Grimfelt
    Jonas Grimfelt created the ticket at 10:38 AM

    Example:

    attributes = [:id, :name, :classification, :parent_id]
    values = [[1,"guppy", "fish", 1], [2, "goldfish", "fish", 1], [3, "parrot fish", "fish", 1]]
    An...
Wednesday, July 01 2009
26 Can't import protected attributes was created
  • markisisme
    markisisme created the ticket at 12:30 AM

    "import" throws warnings like the following when trying to set protected attributes:

    WARNING: Can't mass-assign these protected attributes: id
    

    This has been r...

Wednesday, June 17 2009
25 Import breaks when not using default primary key was created
  • DaniSchumacher
    DaniSchumacher created the ticket at 9:04 AM

    I have a model where the primary key field is NOT "id". I work on MySQL tables that have been there before me.

    class Buy < ActiveRecord::Base
      set_table_name ...
Wednesday, May 27 2009
24 Rails compatibility issue (regression error) was created
  • Gaël SECHAUD
    Gaël SECHAUD created the ticket at 9:28 AM

    When using a string instead of its symbol for comparison, the comportement of ar-extensions is different : it raises an error (as "nil" value isn't pushed) if a...

Saturday, May 16 2009
11 Trouble with require statements and MySQL Adapter was updated
  • Thurston
    Thurston commented at 12:03 PM

    Thanks, Jean.

    Your advice works, further more, I have to remove that two requires, otherwise still got 'uninitialized constant' issues, seems 0.9.1 is not necce...

Wednesday, May 13 2009
23 ar-extensions support for Postgres was created
  • Dan Schaffer
    Dan Schaffer created the ticket at 9:57 AM

    Hello.
    I have downloaded ar-extensions 0.8.2. I am trying to get it to work with ruby-pg (version 0.8.0). When I do:

    require 'active_record'
    require 'ar-extensi...

11 Trouble with require statements and MySQL Adapter was updated
  • Jean-Baptiste Feldis
    Jean-Baptiste Feldis commented at 7:20 AM

    Hello guys,

    got the same problem, resolved by adding a:
    "require 'ar-extensions'"

    before the 2 other ones.

Tuesday, May 12 2009
22 Missing/Empty? import/postgresql.rb was updated
  • Zach Dennis
    Zach Dennis commented at 2:44 PM

    Hi James,

    I know this hasn't been implemented as I don't use PostgreSQL, but I am surprised by the error. It should fall back one insert per row. I'll look into...

11 Trouble with require statements and MySQL Adapter was updated
  • p-daddy
    p-daddy commented at 11:05 AM

    Having same problem with require statements

    I've upgraded to 0.9.1

    these are some of my gems

    actionmailer (2.3.2) actionpack (2.3.2) actionwebservice (1.2.6) ac...

Tuesday, April 21 2009
20 Temporary Tables Clean Up and Enhancement was updated
  • James Herdman
    James Herdman commented at 10:13 PM

    I should note that the pull request is slightly different from the originally attached patch. Please use the pull request only.

  • James Herdman
    James Herdman commented at 10:11 PM

    Sent a pull request tonight from GitHub. This message for completeness of this ticket.

  • Zach Dennis
    • Assigned user set to Zach Dennis
    by Zach Dennis at 12:58 PM

    James, would you mind testing this out against the latest master? If it applies cleanly for you I'll check it out tonight. Thanks,

11 Trouble with require statements and MySQL Adapter was updated
  • Zach Dennis
    Zach Dennis commented at 1:02 PM

    Karsten / joe, sorry about the late response. I didn't have myself as the default assigned user so I wasn't getting emailed by Lighthouse about the ticket.

    Did ...

  • Zach Dennis
    Zach Dennis commented at 1:01 PM

    Karsten / joe, sorry about the late response. I didn't have myself as the default assigned user so I wasn't getting emailed by Lighthouse about the ticket.

    Did ...

21 Problem with 'nil' values in scopes (wrong number of bind variables) was created
  • Gaël SECHAUD
    Gaël SECHAUD created the ticket at 6:19 AM

    Why isn't a "nil" value pushed when parent_id is nil ?

    I.E., why adding the condition "unless result.value.nil?" at line 70 in file finders.rb ?

    MyModel.first...

Saturday, April 11 2009
20 Temporary Tables Clean Up and Enhancement was updated
  • James Herdman
    • Tag set to tables, temporary
    by James Herdman at 8:44 PM
  • James Herdman
    James Herdman created the ticket at 8:44 PM

    The create_temporary_table methods can be more useful than they are in their current implementation. Since the generated class is sort of naked, and doesn't act...

19 Improve Testing Set Up was created
  • James Herdman
    James Herdman created the ticket at 4:47 PM

    I didn't really like how testing set up was with ARE. Configurations were highly similar, and predefined as zdennis. This is okay if you're him, but I'm not.

    Th...

Thursday, April 09 2009
18 No 'Date' comparison support ? was created
  • Gaël SECHAUD
    Gaël SECHAUD created the ticket at 6:48 AM

    I need to compare dates using ar-extensions, but I can't find anything in that module.

    In class ActiveRecord::Extensions::Comparison, the rdoc says that the acc...

Wednesday, March 18 2009
11 Trouble with require statements and MySQL Adapter was updated
  • Joe None
    Joe None commented at 1:41 AM

    I'm also having the same issue, but in a rails context

Monday, March 16 2009
17 attribute_condition in Rails 2.3.1 [PATCH] was updated
Monday, March 09 2009
17 attribute_condition in Rails 2.3.1 [PATCH] was updated
  • Zach Dennis
    Zach Dennis commented at 9:23 PM

    Thanks Stephen. The patch looks simple enough yet it breaks half the tests. I don't have time to look at right now, but I will put it on my docket for later thi...

Friday, March 06 2009
17 attribute_condition in Rails 2.3.1 [PATCH] was updated
  • Zach Dennis
    Zach Dennis commented at 12:07 PM

    Thanks Stephen, do you know if the patch is backwards compatible with Rails 2.1.2 and Rails 2.2.2?

Wednesday, March 04 2009
14 Join Table Conditions Broken was updated
  • Zach Dennis
    Zach Dennis commented at 1:42 PM

    Ah, I see what's going on. This is actually a new feature, since before Rails added hash support for joins I never intended to crawl down a nested hash.

    This on...

  • Avi Flombaum
    Avi Flombaum commented at 1:20 PM

    Sorry about the bad formatting above. The last line should read:

    Returns: ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'users.articles' in 'wher...

  • Alan Peabody
    Alan Peabody commented at 1:20 PM

    Whoops, pasted the wrong output.

    ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'divisions.name_contains' in 'where clause': SELECT tickets.* FROM...

  • Avi Flombaum
    Avi Flombaum commented at 1:19 PM

    Yah, I tested this, there is a bug.

    
    class Article < ActiveRecord::Base
      belongs_to :user
    end
    
    class User < ActiveRecord::Base
      has_many :articles
    end...
  • Avi Flombaum
    Avi Flombaum commented at 12:57 PM

    That's weird - where is "companies" coming from in that SQL - I only see Ticket and Division. I'm going to test this and get back to you. After I upgraded to 0....

1 earlier change…
  • Alan Peabody
    Alan Peabody commented at 12:40 PM

    I just installed ar-extensions 0.8.1 on a Rails 2.2.2 project and have been getting errors on join table conditions.

    
    class Ticket < ActiveRecord::Base
      bel...
Saturday, February 28 2009
13 Imports with default primary key breaking was updated
  • wladjmir
    wladjmir commented at 2:59 AM

    yes, does not import at all

Sunday, February 22 2009
13 Imports with default primary key breaking was updated
  • Zach Dennis
    Zach Dennis commented at 10:46 AM

    wladjmir,

    Is it failing to import completely and raising the error at the bottom of your post?

    
    ActiveRecord::ActiveRecordError: not implemented by SQLite JDB...
  • wladjmir
    wladjmir commented at 8:43 AM

    Zach,

    the code:

    require 'java'
    require 'models'
    
    require 'ar-extensions'
    require 'active_record/connection_adapters/sqlite_adapter'
    require 'ar-extensions/adap...
Thursday, February 12 2009
15 Oracle import broken was created
  • Mike Woodhouse
    Mike Woodhouse created the ticket at 5:16 AM

    (Probably merits its own ticket!)

    As implemented, the oracle import function inherits the default behaviour, which I think produces a statement of the form:

    INS...

Wednesday, February 11 2009
13 Imports with default primary key breaking was updated
  • Mike Woodhouse
    Mike Woodhouse commented at 10:29 AM

    I've forked the code on Git (which gives me another learning curve to negotiate!).

    I think I've isolated the problem - I'll put it up as soon as I've figured ou...

Monday, February 09 2009
14 Join Table Conditions Broken was updated
  • Zach Dennis
    • State changed from new to resolved
    by Zach Dennis at 8:13 PM

    ar-extensions 0.8.1 has just been released. It should show up at a rubygem mirror shortly.