ar-sybase-jdbc-adapter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,7 @@ module Arel
11
11
 
12
12
  def visit_Arel_Nodes_SelectStatement o
13
13
  if o.offset || (o.limit && select_count?(o))
14
+ o.offset.expr += 1 if o.offset
14
15
  sql = super # if offset OR (limit & count) use the Java limit/offset/count parser
15
16
  else
16
17
  limit = o.limit
@@ -1,3 +1,5 @@
1
+ require 'arjdbc/mssql/adapter'
2
+
1
3
  module ::ArJdbc
2
4
  module SybaseJtds
3
5
  def arel2_visitors
@@ -8,5 +10,9 @@ module ::ArJdbc
8
10
  def self.jdbc_connection_class
9
11
  ::ActiveRecord::ConnectionAdapters::SybaseJdbcConnection
10
12
  end
13
+
14
+ def self.column_selector
15
+ [/sybase/i, lambda {|cfg,col| col.extend(::ArJdbc::MsSQL::Column)}]
16
+ end
11
17
  end
12
18
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - arkadiy kraportov