fb_adapter 0.5.10 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,8 @@ module ActiveRecord
|
|
18
18
|
begin
|
19
19
|
connection = db.connect
|
20
20
|
rescue
|
21
|
-
require_library_or_gem 'pp'
|
21
|
+
require_library_or_gem 'pp'
|
22
|
+
pp config
|
22
23
|
connection = config[:create] ? db.create.connect : (raise ConnectionNotEstablished, "No Firebird connections established.")
|
23
24
|
end
|
24
25
|
ConnectionAdapters::FbAdapter.new(connection, logger, config)
|
@@ -355,11 +356,14 @@ module ActiveRecord
|
|
355
356
|
end
|
356
357
|
|
357
358
|
def add_limit_offset!(sql, options) # :nodoc:
|
358
|
-
if options[:limit]
|
359
|
-
|
360
|
-
|
361
|
-
|
359
|
+
if limit = options[:limit]
|
360
|
+
if offset = options[:offset]
|
361
|
+
sql << " ROWS #{offset.to_i + 1} TO #{offset.to_i + limit.to_i}"
|
362
|
+
else
|
363
|
+
sql << " ROWS #{limit.to_i}"
|
364
|
+
end
|
362
365
|
end
|
366
|
+
sql
|
363
367
|
end
|
364
368
|
|
365
369
|
# Returns the next sequence value from a sequence generator. Not generally
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 6
|
9
|
+
- 0
|
10
|
+
version: 0.6.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brent Rowland
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-06 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|