diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-05-26 10:27:53 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-05-26 10:28:02 +0200 |
commit | b952ca369212898058f6e789ed27fe97d3a5bbf4 (patch) | |
tree | 99a960a08ffa93d14b3374371de20ad081430262 /activerecord | |
parent | 2ae6e110033416cc542404d81e30523b954c6daa (diff) | |
download | rails-b952ca369212898058f6e789ed27fe97d3a5bbf4.tar.gz rails-b952ca369212898058f6e789ed27fe97d3a5bbf4.tar.bz2 rails-b952ca369212898058f6e789ed27fe97d3a5bbf4.zip |
pg, remove unused code. Use `extract_schema_and_table` instead.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 4620206e1a..acac3d33b0 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -760,16 +760,6 @@ module ActiveRecord end_sql end - def extract_pg_identifier_from_name(name) # :nodoc: - match_data = name.start_with?('"') ? name.match(/\"([^\"]+)\"/) : name.match(/([^\.]+)/) - - if match_data - rest = name[match_data[0].length, name.length] - rest = rest[1, rest.length] if rest.start_with? "." - [match_data[1], (rest.length > 0 ? rest : nil)] - end - end - def extract_table_ref_from_insert_sql(sql) # :nodoc: sql[/into\s+([^\(]*).*values\s*\(/im] $1.strip if $1 |