method

query_conditions_for_initial_load

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: TypeMapInitializer
query_conditions_for_initial_load(type_map) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb, line 32
          def query_conditions_for_initial_load(type_map)
            known_type_names = type_map.keys.map { |n| "'#{n}'" }
            known_type_types = %('r' 'e' 'd')
                          WHERE                t.typname IN (%s)                OR t.typtype IN (%s)                OR t.typinput = 'array_in(cstring,oid,integer)'::regprocedure                OR t.typelem != 0 % [known_type_names.join(", "), known_type_types.join(", ")]
          end
Register or log in to add new notes.