Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
  • Loading branch information
amirtuval committed Sep 1, 2016
1 parent 304e80a commit db514c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/vertica/protocol/frontend/bind.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def convert_to_string(val, parameter_type)
return '1' if parameter_type.name == 'bool' and TrueClass === val
return '0' if parameter_type.name == 'bool' and FalseClass === val

return val.strftime('%Y-%m-%d %H:%M:%S.%6N %z') if Time === val

val.to_s
end
end
Expand Down

0 comments on commit db514c4

Please sign in to comment.