@@ -440,7 +440,7 @@ def translate_exception(exception, message)
440440
441441 private
442442
443- def get_oid_type ( oid , fmod , column_name , sql_type = "" ) # :nodoc:
443+ def get_oid_type ( oid , fmod , column_name , sql_type = "" )
444444 if !type_map . key? ( oid )
445445 load_additional_types ( type_map , [ oid ] )
446446 end
@@ -453,7 +453,7 @@ def get_oid_type(oid, fmod, column_name, sql_type = "") # :nodoc:
453453 }
454454 end
455455
456- def initialize_type_map ( m ) # :nodoc:
456+ def initialize_type_map ( m )
457457 register_class_with_limit m , "int2" , Type ::Integer
458458 register_class_with_limit m , "int4" , Type ::Integer
459459 register_class_with_limit m , "int8" , Type ::Integer
@@ -521,7 +521,7 @@ def initialize_type_map(m) # :nodoc:
521521 load_additional_types ( m )
522522 end
523523
524- def extract_limit ( sql_type ) # :nodoc:
524+ def extract_limit ( sql_type )
525525 case sql_type
526526 when /^bigint/i , /^int8/i
527527 8
@@ -533,7 +533,7 @@ def extract_limit(sql_type) # :nodoc:
533533 end
534534
535535 # Extracts the value from a PostgreSQL column default definition.
536- def extract_value_from_default ( default ) # :nodoc:
536+ def extract_value_from_default ( default )
537537 case default
538538 # Quoted types
539539 when /\A [\( B]?'(.*)'.*::"?([\w . ]+)"?(?:\[ \] )?\z /m
@@ -559,15 +559,15 @@ def extract_value_from_default(default) # :nodoc:
559559 end
560560 end
561561
562- def extract_default_function ( default_value , default ) # :nodoc:
562+ def extract_default_function ( default_value , default )
563563 default if has_default_function? ( default_value , default )
564564 end
565565
566- def has_default_function? ( default_value , default ) # :nodoc:
566+ def has_default_function? ( default_value , default )
567567 !default_value && ( %r{\w +\( .*\) |\( .*\) ::\w +} === default )
568568 end
569569
570- def load_additional_types ( type_map , oids = nil ) # :nodoc:
570+ def load_additional_types ( type_map , oids = nil )
571571 initializer = OID ::TypeMapInitializer . new ( type_map )
572572
573573 if supports_ranges?
@@ -735,7 +735,7 @@ def configure_connection
735735 end
736736
737737 # Returns the current ID of a table's sequence.
738- def last_insert_id_result ( sequence_name ) # :nodoc:
738+ def last_insert_id_result ( sequence_name )
739739 exec_query ( "SELECT currval('#{ sequence_name } ')" , "SQL" )
740740 end
741741
@@ -757,7 +757,7 @@ def last_insert_id_result(sequence_name) # :nodoc:
757757 # Query implementation notes:
758758 # - format_type includes the column size constraint, e.g. varchar(50)
759759 # - ::regclass is a function that gives the id for a table name
760- def column_definitions ( table_name ) # :nodoc:
760+ def column_definitions ( table_name )
761761 query ( <<-end_sql , "SCHEMA" )
762762 SELECT a.attname, format_type(a.atttypid, a.atttypmod),
763763 pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
@@ -772,12 +772,12 @@ def column_definitions(table_name) # :nodoc:
772772 end_sql
773773 end
774774
775- def extract_table_ref_from_insert_sql ( sql ) # :nodoc:
775+ def extract_table_ref_from_insert_sql ( sql )
776776 sql [ /into\s ("[A-Za-z0-9_."\[ \] \s ]+"|[A-Za-z0-9_."\[ \] ]+)\s */im ]
777777 $1. strip if $1
778778 end
779779
780- def create_table_definition ( *args ) # :nodoc:
780+ def create_table_definition ( *args )
781781 PostgreSQL ::TableDefinition . new ( *args )
782782 end
783783
0 commit comments