mirror of
https://github.com/lloeki/rebel.git
synced 2025-12-06 01:54:40 +01:00
boolean value type
This commit is contained in:
parent
d3ba98ab1b
commit
3d18261e05
1 changed files with 1 additions and 0 deletions
|
|
@ -267,6 +267,7 @@ module Rebel::SQL
|
||||||
when Raw then v
|
when Raw then v
|
||||||
when String then raw "'#{escape_str(v)}'"
|
when String then raw "'#{escape_str(v)}'"
|
||||||
when Integer then raw v.to_s
|
when Integer then raw v.to_s
|
||||||
|
when TrueClass, FalseClass then raw(v ? 'TRUE' : 'FALSE')
|
||||||
when nil then raw 'NULL'
|
when nil then raw 'NULL'
|
||||||
else raise NotImplementedError, v.inspect
|
else raise NotImplementedError, v.inspect
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue