Skip to content

Commit 3e729fe

Browse files
yahondaclaude
andcommitted
Inline PLSQL_BOOLEAN_METADATA into plsql_boolean_metadata
The constant was referenced from exactly one place (`plsql_boolean_metadata`), so naming the hash literal added an indirection without earning its keep — the method name already conveys the intent. Inline the hash and drop the constant. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 07cf607 commit 3e729fe

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/plsql/procedure_call.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module PLSQL
22
class ProcedureCall # :nodoc:
3-
PLSQL_BOOLEAN_METADATA = { data_type: "NUMBER", data_precision: 1 }.freeze
4-
53
def initialize(procedure, args = [], options = {})
64
@procedure = procedure
75
@schema = @procedure.schema
@@ -634,7 +632,7 @@ def plsql_boolean_to_ruby_value(numeric_value)
634632
end
635633

636634
def plsql_boolean_metadata(base_metadata)
637-
base_metadata.merge(PLSQL_BOOLEAN_METADATA)
635+
base_metadata.merge(data_type: "NUMBER", data_precision: 1)
638636
end
639637
end
640638
end

0 commit comments

Comments
 (0)