ibm_db 0.7.0 → 0.7.5
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.
- data/CHANGES +6 -1
- data/README +7 -2
- data/lib/active_record/connection_adapters/ibm_db_adapter.rb +14 -12
- metadata +2 -2
data/CHANGES
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Change Log
|
2
2
|
==============
|
3
|
-
2007/06/
|
3
|
+
2007/06/19 (IBM_DB adapter 0.7.5, driver 0.6.0):
|
4
|
+
- Driver code (ibm_db.c) remains at the same level: 0.6.0 (no changes)
|
5
|
+
- Fixed client attributes initialization on connection setup [11264]
|
6
|
+
- Fixed rake db:schema:dump native data types limits incompatible with table create
|
7
|
+
|
8
|
+
2007/06/01 (IBM_DB adapter 0.7.0, driver 0.6.0):
|
4
9
|
- Driver code (ibm_db.c) remains at the same level: 0.6.0 (no changes)
|
5
10
|
- Fixed remaining failure on {:null => true} option for XML data type [#10877]
|
6
11
|
- Fixed handling of {:id => false} option during table creation in DB2 for zOS
|
data/README
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
=====================================================================
|
2
|
-
README for the IBM_DB Adapter 0.7.
|
2
|
+
README for the IBM_DB Adapter 0.7.5 and Driver 0.6.0 (2007/04/30)
|
3
3
|
For ActiveRecord Version 1.15.3 (and Rails 1.2.3)
|
4
4
|
=====================================================================
|
5
5
|
|
6
6
|
Change Log
|
7
7
|
==============
|
8
|
-
2007/06/
|
8
|
+
2007/06/19 (IBM_DB adapter 0.7.5, driver 0.6.0):
|
9
|
+
- Driver code (ibm_db.c) remains at the same level: 0.6.0 (no changes)
|
10
|
+
- Fixed client attributes initialization on connection setup [11264]
|
11
|
+
- Fixed rake db:schema:dump native data types limits incompatible with table create
|
12
|
+
|
13
|
+
2007/06/01 (IBM_DB adapter 0.7.0, driver 0.6.0):
|
9
14
|
- Driver code (ibm_db.c) remains at the same level: 0.6.0 (no changes)
|
10
15
|
- Fixed remaining failure on {:null => true} option for XML data type [#10877]
|
11
16
|
- Fixed handling of {:id => false} option during table creation in DB2 for zOS
|
@@ -114,14 +114,18 @@ requires credentials: username and password"
|
|
114
114
|
# (in support to formatting, audit and billing purposes):
|
115
115
|
# Retrieve database objects fields in lowercase
|
116
116
|
conn_options = {IBM_DB::ATTR_CASE => IBM_DB::CASE_LOWER}
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
117
|
+
config.each do |key, value|
|
118
|
+
case key
|
119
|
+
when :app_user # Set connection's user info
|
120
|
+
conn_options[IBM_DB::SQL_ATTR_INFO_USERID] = value
|
121
|
+
when :account # Set connection's account info
|
122
|
+
conn_options[IBM_DB::SQL_ATTR_INFO_ACCTSTR] = value
|
123
|
+
when :application # Set connection's application info
|
124
|
+
conn_options[IBM_DB::SQL_ATTR_INFO_APPLNAME] = value
|
125
|
+
when :workstation # Set connection's workstation info
|
126
|
+
conn_options[IBM_DB::SQL_ATTR_INFO_WRKSTNNAME] = value
|
127
|
+
end
|
128
|
+
end
|
125
129
|
|
126
130
|
# Checks if a host name or address has been specified. If so, this implies a TCP/IP connection
|
127
131
|
# Returns IBM_DB::Connection object upon succesful DB connection to the database
|
@@ -822,10 +826,8 @@ requires credentials: username and password"
|
|
822
826
|
!column_type =~ /char|lob|graphic/i
|
823
827
|
if column_type =~ /decimal/i
|
824
828
|
column_type << "(#{column_length},#{column_scale})"
|
825
|
-
elsif column_type =~ /smallint/i
|
826
|
-
column_type << ""
|
827
|
-
elsif column_type =~ /xml/i
|
828
|
-
column_type << "" # override the native column size limit [0]
|
829
|
+
elsif column_type =~ /smallint|integer|double|date|time|timestamp|xml/i
|
830
|
+
column_type << "" # override native limits incompatible with table create
|
829
831
|
else
|
830
832
|
column_type << "(#{column_length})"
|
831
833
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ibm_db
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.7.
|
7
|
-
date: 2007-06-
|
6
|
+
version: 0.7.5
|
7
|
+
date: 2007-06-19 00:00:00 -04:00
|
8
8
|
summary: "Rails Driver and Adapter for IBM Data Servers: {LUW, zOS, i5, IDS}"
|
9
9
|
require_paths:
|
10
10
|
- lib
|