sequel-jdbc-pervasive-adapter 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,23 +1,3 @@
1
- = sequel-jdbc-hxtt-adapter
1
+ = sequel-jdbc-pervasive-adapter
2
2
 
3
- A sequel adapter for working with MS Access files using HXTT's pure JDBC Access driver. JRuby is required when using this
4
- adapter. It will not work in any other Ruby interpreter.
5
-
6
- == HXTT Driver
7
-
8
- The jar library containing the HXTT driver is not supplied but you can obtain a trial version or purchase it at http://www.hxtt.com
9
-
10
- == Note on Patches/Pull Requests
11
-
12
- * Fork the project.
13
- * Make your feature addition or bug fix.
14
- * Add tests for it. This is important so I don't break it in a
15
- future version unintentionally.
16
- * Commit, do not mess with rakefile, version, or history.
17
- (if you want to have your own version, that is fine but
18
- bump version in a commit by itself I can ignore when I pull)
19
- * Send me a pull request. Bonus points for topic branches.
20
-
21
- == Copyright
22
-
23
- Copyright (c) 2010 Colin Casey. See LICENSE for details.
3
+ A sequel adapter for working with pervasive databases based on colincasey's sequel-jdbc-hxtt-adapter
@@ -2,7 +2,7 @@ module Sequel
2
2
  module Jdbc
3
3
  module Pervasive
4
4
  module Adapter
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
8
8
  end
@@ -137,7 +137,11 @@ module Sequel
137
137
  end
138
138
 
139
139
  def select_limit_sql(sql)
140
- sql << "SELECT TOP #{@opts[:limit]}" if @opts[:limit]
140
+ if @opts[:limit]
141
+ sql << "SELECT TOP #{@opts[:limit]}"
142
+ else
143
+ sql << "SELECT"
144
+ end
141
145
  end
142
146
 
143
147
  def supports_is_true?
@@ -28,6 +28,11 @@ describe 'pervasive' do
28
28
  it "limits" do
29
29
  subject.limit(1).all.count.should == 1
30
30
  end
31
+
32
+ it "all" do
33
+ # quick test, fast hack for now
34
+ subject.unlimited.sql =~ /^SELECT \* FROM \"item\"/
35
+ end
31
36
  end
32
37
  end
33
38
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sequel-jdbc-pervasive-adapter
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Stefan Penner