| Message: 66843 |
 |
BY: David Evans (dfevans) DATE: 2009-03-26 11:07 SUBJECT: Quoting and the Postgres DBD Hi, all.
d = DBI.connect('DBI:Pg:...', ...)
d.quote('foo')
should work, yes? It doesn't:
irb(main):010:0> d.quote('foo')
NoMethodError: undefined method `quote' for #<DBI::DBD::Pg::Database:0x101ed74>
but this does:
irb(main):011:0> DBI::DBD::Pg.quote('foo')
=> "E'foo'"
Should DBI::DBD::Pg#quote move into DBI::DBD::Pg::Database? I haven't tried with other DBDs; can file a bug report if appropriate.
DBI version 0.4.1, the pg DBD is 0.3.7.
Cheers! | |