diff --git a/lib/sequel/adapters/jdbc/sqlanywhere.rb b/lib/sequel/adapters/jdbc/sqlanywhere.rb index 34f5f0867..fb20d9c2a 100644 --- a/lib/sequel/adapters/jdbc/sqlanywhere.rb +++ b/lib/sequel/adapters/jdbc/sqlanywhere.rb @@ -56,6 +56,17 @@ class Dataset < JDBC::Dataset private + # JDBC SQLAnywhere driver does not appear to handle fractional + # times correctly. + def default_time_format + "'%H:%M:%S'" + end + + # Set to zero to work around JDBC SQLAnywhere driver bug. + def sqltime_precision + 0 + end + SMALLINT_TYPE = Java::JavaSQL::Types::SMALLINT BOOLEAN_METHOD = Object.new def BOOLEAN_METHOD.call(r, i)