activerecord-fb-adapter 0.8.1 → 0.8.2
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.
|
@@ -72,6 +72,12 @@ module ActiveRecord
|
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
module ConnectionAdapters # :nodoc:
|
|
75
|
+
class FbArray < Array
|
|
76
|
+
def column_types
|
|
77
|
+
{}
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
75
81
|
class FbColumn < Column # :nodoc:
|
|
76
82
|
def initialize(name, domain, type, sub_type, length, precision, scale, default_source, null_flag)
|
|
77
83
|
@firebird_type = Fb::SqlType.from_code(type, sub_type || 0)
|
|
@@ -701,13 +707,9 @@ module ActiveRecord
|
|
|
701
707
|
protected
|
|
702
708
|
# add column_types method returns empty hash, requred for rails 4 compatibility
|
|
703
709
|
def add_column_types obj
|
|
704
|
-
|
|
705
|
-
def column_types
|
|
706
|
-
{}
|
|
707
|
-
end
|
|
708
|
-
end
|
|
709
|
-
obj
|
|
710
|
+
FbArray.new(obj)
|
|
710
711
|
end
|
|
712
|
+
|
|
711
713
|
# Returns an array of record hashes with the column names as keys and
|
|
712
714
|
# column values as values.
|
|
713
715
|
def select(sql, name = nil, binds = [])
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-fb-adapter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-12-
|
|
12
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: fb
|