activerecord-mysql2rgeo-adapter 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f55ea70084ad8be5ca756a592e573db85c455659
4
- data.tar.gz: 1f2d32298e3267a50142160bb851cdcd028f385e
3
+ metadata.gz: ebf8862e5aa9cc0a6ad9358eb11ef336c6d6121d
4
+ data.tar.gz: b0d45b2ce970040c8f7a4c86bf62a74f9e7867b8
5
5
  SHA512:
6
- metadata.gz: 8042d89057cdec1fcd4a624edf9831c5acd99f6cbc8d6a414fbf74db465ebbe2ca62f4538e8356408a7a00e4dd8e54fc5a999f3c67dab575f28d7a1ba2fd4f07
7
- data.tar.gz: 6860bef798f57bf86005db99d7fe48aa9e124b34c6c694cb727c1924c2bb31b246172ab380385c803ced037945a383b344c0d81a7c3ebc417051c13f5bc37a10
6
+ metadata.gz: f2008b6ddec86dd4bdf2677d692a34fed1c34036892cdb049692b394cced198abbf053e51d9e5a9befa2a73580e8f926e61d96192508c9e925e75a44ef57f5b5
7
+ data.tar.gz: 7f9479cded7e02999a7d52a3719e8b0280f674b7da7dd6b561d507fddf0841f2bfa612d9af2830e6e9c521b64c2064aadeff023f00424f2d334170440a3aeafd
@@ -29,8 +29,8 @@ module Arel # :nodoc:
29
29
  if len == 0
30
30
  if !o.projections.first.nil? && o.projections.first.respond_to?(:relation)
31
31
  projections = []
32
- column_cache(o.projections.first.relation.name).keys.each do |x|
33
- projections << o.projections.first.relation[x.to_sym]
32
+ @connection.columns(o.projections.first.relation.name).each do |x|
33
+ projections << o.projections.first.relation[x.name.to_sym]
34
34
  end
35
35
  o.projections = projections
36
36
  end
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord
2
2
  module ConnectionAdapters
3
3
  module Mysql2Rgeo
4
- VERSION = "1.0.1".freeze
4
+ VERSION = "1.0.2".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -10,6 +10,7 @@ require "active_record/connection_adapters/mysql2rgeo/column_methods"
10
10
  require "active_record/connection_adapters/mysql2rgeo/schema_statements"
11
11
  require "active_record/connection_adapters/mysql2rgeo/spatial_table_definition"
12
12
  require "active_record/connection_adapters/mysql2rgeo/spatial_column"
13
+ require "arel/visitors/bind_visitor"
13
14
  require "active_record/connection_adapters/mysql2rgeo/arel_tosql"
14
15
  require "active_record/type/spatial"
15
16
  require "active_record/connection_adapters/mysql2rgeo/create_connection"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-mysql2rgeo-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yongdae Hwang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-13 00:00:00.000000000 Z
11
+ date: 2017-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord