Hi
I noticed that the prepared statement support might be broken in ruby
1.9.1 .
require 'sequel'
require 'logger'
DB = Sequel.sqlite(':memory:', :loggers=>[Logger.new($stdout)])
class Trip < Sequel::Model(:'trips')
plugin :schema
set_schema do
Date :when
String :who
end
end
Trip.create_table!
p Trip.filter( :who >= :$who).filter( :when <= :$when ).sql
ruby 1.8.7 result:
"SELECT * FROM `trips` WHERE ((`who` >= `$who`) AND (`when` <= `
$when`))"
ruby 1.9.1 result:
"SELECT * FROM `trip men` WHERE ('t' AND 'f')"
~ Daniel
ps. the google search feature was broken for this group, so i could
not check if this was already known bug.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.