We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d85f36c commit 61f9c2aCopy full SHA for 61f9c2a
lib/arjdbc/db2/adapter.rb
@@ -361,6 +361,13 @@ def quote(value, column = nil) # :nodoc:
361
"'#{quote_string(value)}'"
362
end
363
when Symbol then "'#{quote_string(value.to_s)}'"
364
+ when Time
365
+ # AS400 doesn't support date in time column
366
+ if column && column_type == :time
367
+ "'#{value.strftime("%H:%M:%S")}'"
368
+ else
369
+ super
370
+ end
371
else super
372
373
0 commit comments