Re: Problem mit Umlaute und DBI
Michael Neumann <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.german |
|---|---|
| Message-ID | <[email protected]> |
On Fri, May 31, 2002 at 02:59:20PM +0200, Oliver Mensinger wrote:
> Hallo Michael,
>
> ruby -e 'puts "\366"' liefert ein "ö"
>
> Fuer das ...PreparedStatement.new... kommt bei mir auch
> "select * from a where x='ö'"
> heraus.
>
> Hm, was ist "DBI::SQL::BasicQuote"??
Nur ein Modul, welches die Method quote implementiert.
Da aber im SQL Statement eh keine Parameter (?) enthalten sind, wird dies
erst gar nicht verwendet (anstatt "X.new" könnte man in diesem Fall also
auch "nil" nehmen).
Könntest du mal in Pg.rb in Statement#execute vor der Zeile
boundsql = @prep_sql.bind(@bindvars)
@prep_sql sowie @bindvars ausgeben (mittels "p"). Und nach der
Zeile am besten auch "boundsql".
MfG,
Michael