ar-sybase-jdbc-adapter 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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