This project is archived and is in readonly mode.
quote_string don't work with some postgres drivers
-
Stephen Celis
- Title changed from [FIX] quote_string don't work with some postgres drivers to quote_string don't work with some postgres drivers
-
Pratik
- State changed from new to incomplete
Can you please provide with more informations to reproduce this ?
Thanks.
-
Lars Kanis
Thanks for answering.
Attached you can find a i386-msvcrt-compiled older version (0.7.1) of the postgres-driver. With this version any database activity will result in the exception above.
This driver doesn't define PGconn.escape. In this case the postgresql_adapter.rb should use the quote_string() from quoting.rb.
But what the quote_string() in postgresql_adapter.rb actually does, is to remove quote_string() entirely from the base class too. So undef_method needs to be changed to remove_method.
Pre ActiveRecord 2.0 versions didn't use PGconn.escape, so the attached binary driver worked out of the box.
Hope the report is more complete now.
-
Pratik
- State changed from incomplete to open
-
josh
- Assigned user set to Jeremy Kemper
- Tag set to activerecord, patch
-
Repository
- State changed from open to resolved
(from [79c3f73a7ff9452d1692c6150f8a7503d8afd459]) PostgreSQL: fix quote_string for certain old pg drivers. [#94 quote_string don't work with some postgres drivers state:resolved] http://github.com/rails/rails/co...
-
Repository
(from [b23b19109050af04e2e1d0f57aee306463f4cbb9]) PostgreSQL: fix quote_string for certain old pg drivers. [#94 quote_string don't work with some postgres drivers state:resolved] http://github.com/rails/rails/co...
-
Repository
(from [c2068d14d29ec767c681798b3814f0a8e22fb0ff]) PostgreSQL: fix quote_string for certain old pg drivers. [#94 quote_string don't work with some postgres drivers state:resolved] http://github.com/rails/rails/co...
