mirror of
https://github.com/lloeki/rebel.git
synced 2025-12-06 10:04:39 +01:00
{Fix,Big}Num => Integer
This commit is contained in:
parent
b698263f37
commit
6adbef3671
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ module Rebel::SQL
|
||||||
case v
|
case v
|
||||||
when Raw then v
|
when Raw then v
|
||||||
when String then raw "'#{v.tr("'", "''")}'"
|
when String then raw "'#{v.tr("'", "''")}'"
|
||||||
when Fixnum then raw v.to_s
|
when Fixnum, Bignum, Integer then raw v.to_s
|
||||||
when nil then raw 'NULL'
|
when nil then raw 'NULL'
|
||||||
else fail NotImplementedError, v.inspect
|
else fail NotImplementedError, v.inspect
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue