lib/sequel/adapters/tinytds.rb in sequel-3.27.0 vs lib/sequel/adapters/tinytds.rb in sequel-3.28.0
- old
+ new
@@ -122,12 +122,16 @@
[v, 'bigint']
when Float
[v, 'double precision']
when Numeric
[v, 'numeric']
- when SQLTime
- [literal(v), 'time']
- when DateTime, Time
+ when Time
+ if v.is_a?(SQLTime)
+ [literal(v), 'time']
+ else
+ [literal(v), 'datetime']
+ end
+ when DateTime
[literal(v), 'datetime']
when Date
[literal(v), 'date']
when nil
['NULL', 'nvarchar(max)']