Skip to content

Commit

Permalink
Adapt to changed Time/DateTime/SQLTime literalization internals
Browse files Browse the repository at this point in the history
  • Loading branch information
philippthun committed Jan 11, 2024
1 parent 7248fb8 commit 97bc3c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/sequel/plugins/microsecond_timestamp_precision.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module Sequel
module Plugins
module MicrosecondTimestampPrecision
module DatasetMethods
def supports_timestamp_usecs?
true
def default_timestamp_format
"'%Y-%m-%d %H:%M:%S.%6N'"
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
include_context 'migration' do
let(:migration_filename) { '20231016094900_microsecond_timestamp_msql_asg_update.rb' }
let(:ds) do
db[:asg_timestamps].with_extend do
def supports_timestamp_usecs?
true
end
end
db[:asg_timestamps].with_extend(Sequel::Plugins::MicrosecondTimestampPrecision::DatasetMethods)
end
end

Expand Down

0 comments on commit 97bc3c8

Please sign in to comment.