[Nitro] sql.rb read_prop for TrueClass
Tim Larson
tim at keow.org
Tue Sep 20 13:26:41 EDT 2005
On Tue, Sep 20, 2005 at 06:23:47PM +0100, Tim Larson wrote:
> In read_prop in og-0.23.0/lib/og/store/sql.rb the clause
> for TrueClass should read 't' instead of '0', to match
> how write_prop writes out either 't' or NULL.
(Sorry, hit send to fast.)
This:
elsif p.klass.ancestors.include?(TrueClass)
return "('0' != res[#{col} + offset])"
Should change to this:
elsif p.klass.ancestors.include?(TrueClass)
return "('t' == res[#{col} + offset])"
--Tim Larson
More information about the Nitro-general
mailing list