Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7727 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

postgresql_adapter.rb: call to 'async_exec' and 'async_query' breaks with postgres-pr driver

Reported by: flowdelic Assigned to: core
Priority: normal Milestone: 1.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: postgres postgresql async_exec async_query
Cc:

Description

When using the postgres-pr (pure ruby) database driver, calls to 'async_exec' and 'async_query' result in a NoMethodError.

In some cases the native Postgres driver will crash on Mac OS X with a bus error. Therefore using the native postgres driver is not an available workaround for all Mac OS X users.

The attached patch postgres_async_path.diff adds a .respond_to? call to avoid the error.

Attachments

postgres_async_patch.diff (0.9 kB) - added by flowdelic on 03/06/07 00:21:59.
Patch to postgresql_adapter.rb

Change History

03/06/07 00:21:59 changed by flowdelic

  • attachment postgres_async_patch.diff added.

Patch to postgresql_adapter.rb

03/06/07 09:28:05 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

03/19/07 20:17:21 changed by flowdelic

Shouldn't that method be 'respond_to?' (I see respond_to -- no question mark) in the patch.

03/19/07 20:46:35 changed by bitsweat

Yes, see #7762.

Opening new tickets for an existing ticket is confusing and kills continuity.