Skip to content

Commit

Permalink
optimize with_temp_table
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Dec 11, 2024
1 parent f980220 commit 7d26fd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
umbrellio-utils (1.5.4)
umbrellio-utils (1.5.5)
memery (~> 1)

GEM
Expand Down
1 change: 1 addition & 0 deletions lib/umbrellio_utils/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def create_temp_table(dataset, primary_key: nil, temp_table_name: nil)
private

def row(values)
return values if values.size == 1
Sequel.function(:row, *values)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/umbrellio_utils/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module UmbrellioUtils
VERSION = "1.5.4"
VERSION = "1.5.5"
end

0 comments on commit 7d26fd7

Please sign in to comment.