Skip to content

NoMemoryError: negative allocation size (or too big) #36

@Halt

Description

@Halt

Got this error after selecting rows after establishing connection to another/non-default database in odbc.

ActiveRecord::StatementInvalid in BookingsController#index

NoMemoryError: negative allocation size (or too big): SELECT * FROM [Orders] 

Trace:

C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.5/lib/active_record/connection_adapters/sqlserver_adapter.rb:914:in `raw_select'
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-sqlserver-adapter-2.3.5/lib/active_record/connection_adapters/sqlserver_adapter.rb:863:in `select'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions