c3-activerecord-jdbc-adapter 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. data/History.txt +452 -0
  2. data/LICENSE.txt +21 -0
  3. data/Manifest.txt +194 -0
  4. data/README.txt +181 -0
  5. data/Rakefile +10 -0
  6. data/lib/active_record/connection_adapters/derby_adapter.rb +1 -0
  7. data/lib/active_record/connection_adapters/h2_adapter.rb +1 -0
  8. data/lib/active_record/connection_adapters/hsqldb_adapter.rb +1 -0
  9. data/lib/active_record/connection_adapters/informix_adapter.rb +1 -0
  10. data/lib/active_record/connection_adapters/jdbc_adapter.rb +1 -0
  11. data/lib/active_record/connection_adapters/jndi_adapter.rb +1 -0
  12. data/lib/active_record/connection_adapters/mssql_adapter.rb +1 -0
  13. data/lib/active_record/connection_adapters/mysql2_adapter.rb +1 -0
  14. data/lib/active_record/connection_adapters/mysql_adapter.rb +1 -0
  15. data/lib/active_record/connection_adapters/oracle_adapter.rb +1 -0
  16. data/lib/active_record/connection_adapters/postgresql_adapter.rb +1 -0
  17. data/lib/active_record/connection_adapters/sqlite3_adapter.rb +1 -0
  18. data/lib/active_record/connection_adapters/teradata_adapter.rb +1 -0
  19. data/lib/activerecord-jdbc-adapter.rb +8 -0
  20. data/lib/arel/engines/sql/compilers/db2_compiler.rb +9 -0
  21. data/lib/arel/engines/sql/compilers/derby_compiler.rb +6 -0
  22. data/lib/arel/engines/sql/compilers/h2_compiler.rb +6 -0
  23. data/lib/arel/engines/sql/compilers/hsqldb_compiler.rb +15 -0
  24. data/lib/arel/engines/sql/compilers/jdbc_compiler.rb +6 -0
  25. data/lib/arel/engines/sql/compilers/mssql_compiler.rb +46 -0
  26. data/lib/arel/visitors/compat.rb +13 -0
  27. data/lib/arel/visitors/db2.rb +17 -0
  28. data/lib/arel/visitors/derby.rb +21 -0
  29. data/lib/arel/visitors/firebird.rb +17 -0
  30. data/lib/arel/visitors/hsqldb.rb +26 -0
  31. data/lib/arel/visitors/sql_server.rb +44 -0
  32. data/lib/arjdbc.rb +29 -0
  33. data/lib/arjdbc/db2.rb +2 -0
  34. data/lib/arjdbc/db2/adapter.rb +421 -0
  35. data/lib/arjdbc/derby.rb +7 -0
  36. data/lib/arjdbc/derby/adapter.rb +352 -0
  37. data/lib/arjdbc/derby/connection_methods.rb +18 -0
  38. data/lib/arjdbc/discover.rb +99 -0
  39. data/lib/arjdbc/firebird.rb +2 -0
  40. data/lib/arjdbc/firebird/adapter.rb +136 -0
  41. data/lib/arjdbc/h2.rb +4 -0
  42. data/lib/arjdbc/h2/adapter.rb +36 -0
  43. data/lib/arjdbc/h2/connection_methods.rb +12 -0
  44. data/lib/arjdbc/hsqldb.rb +4 -0
  45. data/lib/arjdbc/hsqldb/adapter.rb +182 -0
  46. data/lib/arjdbc/hsqldb/connection_methods.rb +14 -0
  47. data/lib/arjdbc/informix.rb +3 -0
  48. data/lib/arjdbc/informix/adapter.rb +138 -0
  49. data/lib/arjdbc/informix/connection_methods.rb +10 -0
  50. data/lib/arjdbc/jdbc.rb +2 -0
  51. data/lib/arjdbc/jdbc/adapter.rb +283 -0
  52. data/lib/arjdbc/jdbc/adapter_java.jar +0 -0
  53. data/lib/arjdbc/jdbc/callbacks.rb +44 -0
  54. data/lib/arjdbc/jdbc/column.rb +47 -0
  55. data/lib/arjdbc/jdbc/compatibility.rb +51 -0
  56. data/lib/arjdbc/jdbc/connection.rb +130 -0
  57. data/lib/arjdbc/jdbc/connection_methods.rb +16 -0
  58. data/lib/arjdbc/jdbc/core_ext.rb +24 -0
  59. data/lib/arjdbc/jdbc/discover.rb +18 -0
  60. data/lib/arjdbc/jdbc/driver.rb +35 -0
  61. data/lib/arjdbc/jdbc/extension.rb +47 -0
  62. data/lib/arjdbc/jdbc/java.rb +14 -0
  63. data/lib/arjdbc/jdbc/jdbc.rake +131 -0
  64. data/lib/arjdbc/jdbc/missing_functionality_helper.rb +87 -0
  65. data/lib/arjdbc/jdbc/quoted_primary_key.rb +28 -0
  66. data/lib/arjdbc/jdbc/railtie.rb +9 -0
  67. data/lib/arjdbc/jdbc/rake_tasks.rb +10 -0
  68. data/lib/arjdbc/jdbc/require_driver.rb +16 -0
  69. data/lib/arjdbc/jdbc/type_converter.rb +126 -0
  70. data/lib/arjdbc/mimer.rb +2 -0
  71. data/lib/arjdbc/mimer/adapter.rb +142 -0
  72. data/lib/arjdbc/mssql.rb +4 -0
  73. data/lib/arjdbc/mssql/adapter.rb +472 -0
  74. data/lib/arjdbc/mssql/connection_methods.rb +30 -0
  75. data/lib/arjdbc/mssql/limit_helpers.rb +98 -0
  76. data/lib/arjdbc/mssql/tsql_helper.rb +61 -0
  77. data/lib/arjdbc/mysql.rb +4 -0
  78. data/lib/arjdbc/mysql/adapter.rb +425 -0
  79. data/lib/arjdbc/mysql/connection_methods.rb +27 -0
  80. data/lib/arjdbc/oracle.rb +3 -0
  81. data/lib/arjdbc/oracle/adapter.rb +418 -0
  82. data/lib/arjdbc/oracle/connection_methods.rb +11 -0
  83. data/lib/arjdbc/postgresql.rb +4 -0
  84. data/lib/arjdbc/postgresql/adapter.rb +598 -0
  85. data/lib/arjdbc/postgresql/connection_methods.rb +21 -0
  86. data/lib/arjdbc/sqlite3.rb +4 -0
  87. data/lib/arjdbc/sqlite3/adapter.rb +381 -0
  88. data/lib/arjdbc/sqlite3/connection_methods.rb +34 -0
  89. data/lib/arjdbc/sybase.rb +2 -0
  90. data/lib/arjdbc/sybase/adapter.rb +46 -0
  91. data/lib/arjdbc/teradata.rb +3 -0
  92. data/lib/arjdbc/teradata/adapter.rb +81 -0
  93. data/lib/arjdbc/teradata/connection_methods.rb +11 -0
  94. data/lib/arjdbc/version.rb +8 -0
  95. data/lib/generators/jdbc/jdbc_generator.rb +9 -0
  96. data/lib/jdbc_adapter.rb +2 -0
  97. data/lib/jdbc_adapter/rake_tasks.rb +3 -0
  98. data/lib/jdbc_adapter/version.rb +3 -0
  99. data/lib/pg.rb +26 -0
  100. data/rails_generators/jdbc_generator.rb +15 -0
  101. data/rails_generators/templates/config/initializers/jdbc.rb +7 -0
  102. data/rails_generators/templates/lib/tasks/jdbc.rake +8 -0
  103. data/rakelib/compile.rake +25 -0
  104. data/rakelib/db.rake +19 -0
  105. data/rakelib/package.rake +92 -0
  106. data/rakelib/rails.rake +41 -0
  107. data/rakelib/test.rake +81 -0
  108. data/src/java/arjdbc/db2/DB2RubyJdbcConnection.java +62 -0
  109. data/src/java/arjdbc/derby/DerbyModule.java +322 -0
  110. data/src/java/arjdbc/h2/H2RubyJdbcConnection.java +70 -0
  111. data/src/java/arjdbc/informix/InformixRubyJdbcConnection.java +74 -0
  112. data/src/java/arjdbc/jdbc/AdapterJavaService.java +70 -0
  113. data/src/java/arjdbc/jdbc/JdbcConnectionFactory.java +36 -0
  114. data/src/java/arjdbc/jdbc/RubyJdbcConnection.java +1328 -0
  115. data/src/java/arjdbc/jdbc/SQLBlock.java +48 -0
  116. data/src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java +127 -0
  117. data/src/java/arjdbc/mysql/MySQLModule.java +134 -0
  118. data/src/java/arjdbc/mysql/MySQLRubyJdbcConnection.java +87 -0
  119. data/src/java/arjdbc/oracle/OracleRubyJdbcConnection.java +85 -0
  120. data/src/java/arjdbc/postgresql/PostgresqlRubyJdbcConnection.java +57 -0
  121. data/src/java/arjdbc/sqlite3/Sqlite3RubyJdbcConnection.java +64 -0
  122. data/src/java/arjdbc/teradata/TeradataRubyJdbcConnection.java +62 -0
  123. data/test/abstract_db_create.rb +128 -0
  124. data/test/activerecord/connection_adapters/type_conversion_test.rb +31 -0
  125. data/test/activerecord/connections/native_jdbc_mysql/connection.rb +25 -0
  126. data/test/db/db2.rb +11 -0
  127. data/test/db/derby.rb +12 -0
  128. data/test/db/h2.rb +11 -0
  129. data/test/db/hsqldb.rb +13 -0
  130. data/test/db/informix.rb +11 -0
  131. data/test/db/jdbc.rb +11 -0
  132. data/test/db/jndi_config.rb +40 -0
  133. data/test/db/logger.rb +3 -0
  134. data/test/db/mssql.rb +9 -0
  135. data/test/db/mysql.rb +10 -0
  136. data/test/db/oracle.rb +34 -0
  137. data/test/db/postgres.rb +9 -0
  138. data/test/db/sqlite3.rb +11 -0
  139. data/test/db2_simple_test.rb +66 -0
  140. data/test/derby_migration_test.rb +68 -0
  141. data/test/derby_multibyte_test.rb +12 -0
  142. data/test/derby_simple_test.rb +99 -0
  143. data/test/generic_jdbc_connection_test.rb +29 -0
  144. data/test/h2_simple_test.rb +41 -0
  145. data/test/has_many_through.rb +79 -0
  146. data/test/helper.rb +5 -0
  147. data/test/hsqldb_simple_test.rb +6 -0
  148. data/test/informix_simple_test.rb +48 -0
  149. data/test/jdbc_common.rb +25 -0
  150. data/test/jndi_callbacks_test.rb +40 -0
  151. data/test/jndi_test.rb +25 -0
  152. data/test/manualTestDatabase.rb +191 -0
  153. data/test/models/add_not_null_column_to_table.rb +9 -0
  154. data/test/models/auto_id.rb +15 -0
  155. data/test/models/data_types.rb +30 -0
  156. data/test/models/entry.rb +40 -0
  157. data/test/models/mixed_case.rb +22 -0
  158. data/test/models/reserved_word.rb +15 -0
  159. data/test/models/string_id.rb +15 -0
  160. data/test/models/validates_uniqueness_of_string.rb +19 -0
  161. data/test/mssql_db_create_test.rb +26 -0
  162. data/test/mssql_identity_insert_test.rb +19 -0
  163. data/test/mssql_legacy_types_test.rb +58 -0
  164. data/test/mssql_limit_offset_test.rb +136 -0
  165. data/test/mssql_multibyte_test.rb +18 -0
  166. data/test/mssql_simple_test.rb +55 -0
  167. data/test/mysql_db_create_test.rb +27 -0
  168. data/test/mysql_info_test.rb +123 -0
  169. data/test/mysql_multibyte_test.rb +10 -0
  170. data/test/mysql_nonstandard_primary_key_test.rb +42 -0
  171. data/test/mysql_simple_test.rb +49 -0
  172. data/test/oracle_simple_test.rb +18 -0
  173. data/test/oracle_specific_test.rb +83 -0
  174. data/test/pick_rails_version.rb +3 -0
  175. data/test/postgres_db_create_test.rb +32 -0
  176. data/test/postgres_drop_db_test.rb +16 -0
  177. data/test/postgres_information_schema_leak_test.rb +29 -0
  178. data/test/postgres_mixed_case_test.rb +29 -0
  179. data/test/postgres_native_type_mapping_test.rb +84 -0
  180. data/test/postgres_nonseq_pkey_test.rb +38 -0
  181. data/test/postgres_reserved_test.rb +22 -0
  182. data/test/postgres_schema_search_path_test.rb +48 -0
  183. data/test/postgres_simple_test.rb +90 -0
  184. data/test/postgres_table_alias_length_test.rb +15 -0
  185. data/test/simple.rb +557 -0
  186. data/test/sqlite3_simple_test.rb +233 -0
  187. data/test/sybase_jtds_simple_test.rb +28 -0
  188. metadata +273 -0
data/History.txt ADDED
@@ -0,0 +1,452 @@
1
+ == 1.1.3
2
+
3
+ - Remove AR version < 3 guard around some caching methods (sugg. invadersmustdie)
4
+ - Small bug in arjdbc/discover logic, thanks autotelik.
5
+ - Added bigint serial support + some testcases for native type mapping (postgres only)
6
+ - mssql: use subscript instead of #first. (Kim Toms)
7
+ - #71: fix yield called out of block error
8
+ - Silence Rake::DSL warnings for Rake > 0.9
9
+
10
+ == 1.1.2
11
+
12
+ - Update version of H2 driver from 1.1.107 to 1.3.153 (Ketan
13
+ Padegaonkar, Jeremy Stephens)
14
+ - Fix errors in db:test:clone_structure with PostgreSQL (Andrea Campi)
15
+ - Fixing limit for sqlServer2000 if primary key is not named 'id'
16
+ (Luca Simone)
17
+ - DB2: define jdbc_columns (fixes table_exists? bug) (Nick Kreucher)
18
+ - ACTIVERECORD_JDBC-152 - omitting limit when dumping bytea fields
19
+ (Gregor Schmidt)
20
+ - Postgres doesn't support a limit for bytea columns (Alex Tambellini)
21
+ - JRUBY-5642: Default to schema public if no schema given for postgres
22
+ (Anthony Juckel)
23
+ - Sqlite3 supports float data type so use float (Alex Tambellini)
24
+ - GH #21: Now using sqlite3 driver from
25
+ http://www.xerial.org/trac/Xerial/wiki/SQLiteJDBC (thanks Ukabu)
26
+ - GH #65: PG: Respect integer sizes (Alex Tambellini)
27
+ - GH #59: PG: Properly escape bytea-escaped string
28
+ - GH #53: oracle: allow configuration of schema through schema: key
29
+ - GH #50: PG: support multiple schema in search_path (Daniel
30
+ Schreiber)
31
+ - GH #25: Reload ArJdbc.column_types if number of constants changed
32
+ - GH #47: Allow table statistics for indexes to be approximate; speeds
33
+ up Oracle
34
+ - GH #67: Change primary_keys to use the same catalog/schema/table
35
+ separation logic as columns_internal (Marcus Brito). This change
36
+ allows set_table_name to specify a custom schema.
37
+ - GH #49: mssql: quote table names like column names
38
+ - GH #56: mssql: Fix 'select 1' behavior introduced by AR 3.0.7
39
+ - GH #55: Make decimal columns with no precision or scale stay
40
+ decimals
41
+ - GH #45: Add Arel limit support for Firebird (Systho))
42
+ - GH #39: PG: allow negative integer default values
43
+ - GH #19: Make a stub Mysql::Error class
44
+ - ACTIVERECORD_JDBC-148: mssql: Ensure regex doesn't match 'from' in a
45
+ field name
46
+ - GH#31: mssql: Remove extra code breaking mssql w/o limit
47
+ - ACTIVERECORD_JDBC-156: mssql: Logic fix for detecting select_count?
48
+
49
+ == 1.1.1
50
+
51
+ - Arel 2.0.7 compatibility: fix bugs arising from use of Arel 2.0.7 +
52
+ ArJdbc 1.1.0.
53
+ - Gracefully handle changes to limit in Arel's AST
54
+ - Avoid conflict with Arel 2.0.7's mssql visitor
55
+ - Upgrade to PostgreSQL 9.0.801 JDBC drivers (David Kellum)
56
+
57
+ == 1.1.0 (12/09/10)
58
+
59
+ - Don't narrow platform to '-java' only: revert back to 0.9.2 where
60
+ ar-jdbc can be installed under any Ruby (for easier Bundler/Warbler
61
+ usage and less confusion on rubygems.org).
62
+ - Upgrade MySQL execute code to use RETURN_GENERATED_KEYS.
63
+ - Upgrade to MySQL driver version 5.1.13
64
+ - Add multi-statement support, idea from oruen. For databases that
65
+ support it, you can now do:
66
+ results = Model.connection.execute("select 1; select 2")
67
+ and receive back an array of multiple result set arrays. For use with
68
+ MySQL, you need to add
69
+ options:
70
+ allowMultiQueries: true
71
+ in database.yml.
72
+ - ACTIVERECORD_JDBC-144: Fix limits appearing in schema dump for some
73
+ datatypes (Uwe Kubosch)
74
+ - Fixes for DB2 limit/offset
75
+ - Fix rake db:create for 'jdbc' adapter (Joeri Samson)
76
+ - add create/drop database methods to h2 adapter (sahglie)
77
+ - Use connection getDatabaseProductName instead of getClass.getName
78
+ when detecting JNDI dialects (Denis Odorcic)
79
+ - ACTIVERECORD_JDBC-146: Fix create_table to not append encoding (Marc Slemko)
80
+ - All green on SQLite3 Rails master ActiveRecord tests
81
+ - ACTIVERECORD_JDBC-140: Sync postgres add/change column code from Rails master
82
+ - ACTIVERECORD_JDBC-139: TEXT/DATE on PostgreSQL should not have limits
83
+
84
+ == 1.0.3 (11/29/10)
85
+
86
+ - ACTIVERECORD_JDBC-143: Implement table_exists? fixing association
87
+ table names with schema prefixes
88
+ - Cleanup of column code for hsqldb (Denis Odorcic)
89
+ - Rails 3.0.3 support - add Arel 2 visitors for all adapters
90
+ - Fix MySQL date types to not have limits (Chris Lowder)
91
+ - ACTIVERECORD_JDBC-141: Better schema support in H2
92
+
93
+ == 1.0.2
94
+
95
+ - ACTIVERECORD_JDBC-134: Fix conflicting adapter/column superclasses
96
+ - ACTIVERECORD_JDBC-135: Fix regression on PG with boolean and :limit
97
+ - Slew of Derby fixes courtesy of Denis Odorcic
98
+
99
+ == 1.0.1
100
+
101
+ - Fix db:test:purge issue affecting all adapters in 1.0.0 due to
102
+ incorrect fix to JRUBY-5081 in 8b4b9c5
103
+
104
+ == 1.0.0
105
+
106
+ - Thanks to David Kellum, Dmitry Denisov, Dwayne Litzenberger, Gregor
107
+ Schmidt, James Walker, John Duff, Joshua Suggs, Nicholas J Kreucher,
108
+ Peter Donald, Geoff Longman, Uwe Kubosch, Youhei Kondou, Michael
109
+ Pitman, Alex B, and Ryan Bell for their contributions to this
110
+ release.
111
+ - BIG set of DB2 updates (Thanks Nick Kreucher)
112
+ - Deprecate jdbc_adapter/rake_tasks
113
+ - (1.0.0.beta1)
114
+ - Make database-specific extensions only load when necessary
115
+ - Allow for discovery of database extensions outside of ar-jdbc
116
+ proper. This should allow for custom database development to be
117
+ developed and released without relying on AR-JDBC core.
118
+ - Get AR's own tests running as close to 100% as possible. MySQL is
119
+ currently 100%, SQLite3 is close.
120
+ - JRUBY-4876: Bump up Derby's max index name length (Uwe Kubosch)
121
+ - (1.0.0.beta2)
122
+ - 98 commits since beta1
123
+ - MSSQL updates from dlitz and realityforge
124
+ - ACTIVERECORD_JDBC-131: Fix string slug issue for DB2 (Youhei Kondou)
125
+ - JRUBY-1642: Don't use H2 INFORMATION_SCHEMA in table or column
126
+ searches
127
+ - JRUBY-4972: Attempt to deal with type(0)/:limit => 0 by not setting
128
+ it808e213
129
+ - JRUBY-5040: Fix issue with limits on timestamps in MySQL
130
+ - JRUBY-3555: Allow setting Derby schema with 'schema:' option
131
+ - ACTIVERECORD_JDBC-98: Make sure we actuall raise an error when
132
+ inappropriately configured
133
+ - ACTIVERECORD_JDBC-112: Add schema dumper tests for already-fixed
134
+ MySQL type limits
135
+ - ACTIVERECORD_JDBC-113: Fix PG float precision issue
136
+ - ACTIVERECORD_JDBC-103: Fix decimal options for PG add/change column
137
+ (Michael Pitman)
138
+ - ACTIVERECORD_JDBC-127: Fix quoting of Date vs. Time(stamp) for
139
+ Oracle (Lenny Marks)
140
+ - Oracle: Sort out the NUMBER vs NUMBER(x) vs NUMBER(x,y) situation.
141
+ - JRUBY-3051: Think we finally got the PG mixed-case patches applied.
142
+ - JRUBY-5081: Consolidate code for dropping DB via postgres
143
+ - ACTIVERECORD_JDBC-101: Add override of LONGVARCHAR => CLOB for
144
+ informix
145
+ - ACTIVERECORD_JDBC-107: Fix MySQL update_all issue on AR 2.3
146
+ - ACTIVERECORD_JDBC-124: Filter out special _row_num column
147
+ - ACTIVERECORD_JDBC-126: Fix sql 2000 limit/offset per Michael Pitman
148
+ - ACTIVERECORD_JDBC-125: Add tweak to limit/offset code for HABTM
149
+ queries (alex b)
150
+ - ACTIVERECORD_JDBC-129: Don't have limits for text, binary or bit
151
+ fields
152
+ - (1.0.0 final)
153
+ - Fix a few more SQLite3 AR tests
154
+ - SQLite3: handle ":memory:" database
155
+ - Release new SQLite3 driver 3.6.14.2 and new Derby driver 10.6.2.1
156
+
157
+ == 0.9.7
158
+
159
+ - JRUBY-4781: Fix multiple database connection collision issue w/
160
+ Oracle
161
+ - ACTIVERECORD_JDBC-115: Support SAVEPOINTS for MySQL and PG so that
162
+ nested transactions can be faked
163
+ - ACTIVERECORD_JDBC-116: Handle schema.table better for MySQL (thanks
164
+ Dilshod Mukhtarov)
165
+ - Fix 'Wrong # of arguments (2 for 1)' issue with #create_database for
166
+ MySQL and AR 3.0
167
+ - SQLServer 2000 support (thanks Jay McGaffigan)
168
+
169
+ == 0.9.6
170
+
171
+ - The Oracle release!
172
+ - Oracle should be working much better with this release. Also updated
173
+ to work with Rails 3.
174
+ - Get all unit tests running cleanly on Oracle, fixing previous
175
+ datetime/timezone issues.
176
+ - ACTIVERECORD_JDBC-83: Add :sequence_start_value option to
177
+ create_table, following oracle_enhanced adapter
178
+ - ACTIVERECORD_JDBC-33: Don't double-quote table names in oracle
179
+ - ACTIVERECORD_JDBC-17: Fix Oracle primary keys so that /^NUMBER$/ => :integer
180
+ - Fix remaining blockers ACTIVERECORD_JDBC-82, JRUBY-3675,
181
+ ACTIVERECORD_JDBC-22, ACTIVERECORD_JDBC-27, JRUBY-4759
182
+
183
+ == 0.9.5
184
+
185
+ - The MSSQL release, courtesy of Mike Williams and Lonely
186
+ Planet.
187
+ - JRuby + AR-JDBC is now seen as the hassle-free way of using Rails
188
+ with SQLServer!
189
+ - Many fixes for MSSQL, including ACTIVERECORD_JDBC-18,
190
+ ACTIVERECORD_JDBC-41, ACTIVERECORD_JDBC-56, ACTIVERECORD_JDBC-94,
191
+ ACTIVERECORD_JDBC-99, JRUBY-3805, JRUBY-3793, JRUBY-4221
192
+ - All tests pass on Rails 3.0.0.beta3!
193
+
194
+ == 0.9.4
195
+
196
+ - ACTIVERECORD_JDBC-96: DB2 JdbcSpec cannot dump schema correctly
197
+ (Youhei Kondou)
198
+ - ACTIVERECORD_JDBC-97: Dont use Rails 3 deprecated constants (David
199
+ Calavera)
200
+ - Updates for rake db:schema:dump compatibility with Rails 2.3+ and
201
+ MySQL (Joakim Kolsj�)
202
+ - Rails 3.0.0.beta2 compatibility
203
+ - Return of Derby, H2, Hsqldb support (requires AR >= 3.0.0.beta2)
204
+
205
+ == 0.9.3
206
+
207
+ - Rails 3 compatibility
208
+ - PLEASE NOTE: ActiveRecord in Rails 3 has changed in a way that
209
+ doesn't allow non-standard DBs (such as the Derby and H2 embedded
210
+ DBs) to work. We're investigating the effort required to support
211
+ these databases and hope to have something for a future release.
212
+ - ACTIVERECORD_JDBC-91: Fix schema search path for PostgreSQL (Alex
213
+ Kuebo)
214
+ - ACTIVERECORD_JDBC-87: DB2 ID insert fix (Youhei Kondou)
215
+ - ACTIVERECORD_JDBC-90: MSSQL fix for DATEs (jlangenauer)
216
+ - ACTIVERECORD_JDBC-93: Fix string IDs for sqlite3, hsql/h2 (moser)
217
+ - ACTIVERECORD_JDBC-86: Fix Derby queries starting with VALUES (Dwayne Litzenberger)
218
+ - ACTIVERECORD_JDBC-95: Fix INSERT ... RETURNING for PostgreSQL
219
+
220
+ == 0.9.2
221
+
222
+ - The main, highly awaited fix for this release is a solution to the
223
+ rake db:create/db:drop issue. The main change is a new 'jdbc' rails
224
+ generator that should be run once to prepare a Rails application to
225
+ use JDBC. The upside of this generator is that you no longer will
226
+ need to alter database.yml for JDBC. See the README.txt for details.
227
+ - Cleanup and reconnect if errors occur during begin/rollback
228
+ (Jean-Dominique Morani, Christian Seiler)
229
+ - ACTIVERECORD_JDBC-1: Add #drop_database method for oracle (does the
230
+ same thing as recreate_database)
231
+ - Sqlite3 and MSSQL fixes (Jean-Dominique Morani)
232
+ - JRUBY-3512: Treat LONGVARCHAR as a CLOB for Mssql
233
+ - JRUBY-3624: Upgrade Derby to 10.5.3.0 and add native limit/offset
234
+ support (Christopher Saunders)
235
+ - JRUBY-3616: Fix postgres non-sequence primary keys (David Kellum)
236
+ - JRUBY-3669: Fix Oracle case with unconfigured schema (Dan Powell)
237
+ - Fixed quote_column_name of jdbc_oracle to accept numbers (Marcelo
238
+ Murad)
239
+ - Fix for mysql tables with non standard primary keys such that the
240
+ schema dump is correct (Nick Zalabak)
241
+ - MSSQL fixes from Mike Luu:
242
+ - add support for MSSQL uniqueidentifier datatype
243
+ - always quote strings using unicode identifier for MSSQL
244
+ - Changes primary_key generation to use always instead of by default
245
+ for DB2 (Amos King)
246
+ - Improves the SQLite adapter by fixing rename_column, change_column,
247
+ change_column_default, changing remove_column, and adding
248
+ remove_columns (Ryan Baumann)
249
+ - More oracle love courtesy Ben Browning and Jens Himmelreich
250
+ - JRUBY-3608: Add missing change_column_null method for postgres
251
+ - JRUBY-3508: Fix quoting of integer and float columns
252
+
253
+ == 0.9.1
254
+
255
+ - We did a lot of internal cleanup this release in the hopes of
256
+ simplifying the code and increasing performance.
257
+ - Many SQLite updates (thanks Nils Christian Haugen)
258
+ - JRUBY-2912: Fix MSSQL create/drop database (Joern Hartmann)
259
+ - JRUBY-2767: Mistake in selecting identity with H2/HSQLDB
260
+ - JRUBY-2884: jdbc_postgre.rb issue handling nil booleans (also a fix
261
+ for hsqldb/h2) + tests
262
+ - JRUBY-2995: activerecord jdbc derby adapter should quote columns
263
+ called 'year'
264
+ - JRUBY-2897: jdbc_postgre.rb needs microsecond support
265
+ - JRUBY-3282: Upgrade to derby 10.4.2.0 to allow unique constraints
266
+ with nullable columns
267
+ - Update h2 from 1.0.63 to 1.1.107 in driver
268
+ - JRUBY-3026: [Derby] Allow select/delete/update conditions with
269
+ comparison to NULL using '='
270
+ - JRUBY-2996: ...(actually this fixes only remaining issue of this bug
271
+ which was symbols making into quote were exploding
272
+ - JRUBY-2691: Update sybase driver to pass simple unit tests with jtds
273
+ and verify it works with the new dialect keyword. patch by Leigh
274
+ Kennedy
275
+ - Make :float type work on h2,hsql [returned as string]. Make :float
276
+ work on hsqldb (no paren value supported). Make REAL_TYPE just
277
+ return RubyFloat
278
+ - JRUBY-3222: Upgrade #type_to_sql to variation of AR 2.1.2 version
279
+ - Add patch supplied in JRUBY-3489 (patch by Jean-Dominique Morani)
280
+ - Various Oracle fixes by edsono
281
+ - JRUBY-2688: Don't hard-code MySQL connection character encoding to
282
+ utf8
283
+
284
+ == 0.9
285
+
286
+ - Now updated to support ActiveRecord 2.2. JNDI-based connections will
287
+ automatically connect/disconnect for every AR connection pool
288
+ checkout/checkin. For best results, set your pool: parameter >= the
289
+ actual maximum size of the JNDI connection pool. (We'll look at how
290
+ to eliminate the need to configure AR's pool in the future.)
291
+ - NEW! Informix support courtesy of Javier Fernandez-Ivern.
292
+ - Backport another Oracle CLOB issue, thanks Edson C�sar.
293
+ - Rubyforge #22018: chomp final trailing semicolon for oracle
294
+ - JRUBY-2848: Fix NPE error in set_native_database_types
295
+ - Rework oracle lob saving callback to be Rails 2.1 friendly (assist
296
+ from court3nay)
297
+ - JRUBY-2715: Add create/drop database methods to Postgres (Peter Williams)
298
+ - JRUBY-3183: Fix structure dump for Postgres (Ryan Bell)
299
+ - JRUBY-3184: recreate_database for test database working for PG (Ryan Bell)
300
+ - JRUBY-3186: disable referential integrity for PG (Ryan Bell)
301
+ - Authoritative repository now hosted at
302
+ git://github.com/nicksieger/activerecord-jdbc-adapter.git; rubyforge
303
+ svn trunk cleaned out.
304
+
305
+ == 0.8.2
306
+
307
+ - Added an optional config key called :dialect. Using :dialect allows you to
308
+ override the default SQL dialect for the driver class being used. There are
309
+ a few cases for this:
310
+ - Using using Sybase w/ the jTDS driver.
311
+ - Using rebranded drivers.
312
+ - It makes more sense to use :dialect, rather then :driver when using JNDI.
313
+ - JRUBY-2619: Typo with :test config causing problems with dev database (Igor Minar)
314
+ - 20524, JRUBY-2612: Since when did I think that there was a #true? method on Object?
315
+
316
+ == 0.8.1
317
+
318
+ - Now sporting a JDBC sqlite3 adapter! Thanks Joseph Athman.
319
+ - Added support for InterSystems Cache database (Ryan Bell)
320
+ - Fix for JRUBY-2256
321
+ - JRUBY-1638, JRUBY-2404, JRUBY-2463: schema.table handling and Oracle NUMBER fixes (Darcy Schultz & Jesse Hu)
322
+ - Add structure dump and other DDL-ish for DB2 (courtesy abedra and stuarthalloway)
323
+ - Fix missing quote_table_name function under Rails 1.2.6 and earlier
324
+ - Small tweaks to jdbc.rake to select proper config
325
+ - JRUBY-2011: Fix MSSQL string un-quoting issue (Silvio Fonseca)
326
+ - JRUBY-1977, 17427: Fix information_schema select issue with MSSQL (Matt Burke)
327
+ - 20479: Improve get_table_name for MSSQL (Aslak Hellesøy)
328
+ - 20243: numerics improvements for MSSQL (Aslak Hellesøy)
329
+ - 20172: don't quote table names for MSSQL (Thor Marius Henrichsen)
330
+ - 19729: check for primary key existence in postgres during insert (Martin Luder)
331
+ - JRUBY-2297, 18846: retrying failing SQL statements is harmful when not autocommitting (Craig McMillan)
332
+ - 10021: very preliminary sybase support. (Mark Atkinson) Not usable until collision w/ sqlserver driver is resolved.
333
+ - JRUBY-2312, JRUBY-2319, JRUBY-2322: Oracle timestamping issues (Jesse Hu & Michael König)
334
+ - JRUBY-2422: Fix MySQL referential integrity and rollback issues
335
+ - JRUBY-2382: mysql string quoting fails with ArrayIndexOutofBoundsException
336
+
337
+ == 0.8
338
+
339
+ - NOTE: This release is only compatible with JRuby 1.1RC3 or later.
340
+ - Because of recent API changes in trunk in preparation for JRuby 1.1, this release is not
341
+ backward compatible with previous JRuby releases. Hence the version bump.
342
+ - Internal: convert Java methods to be defined with annotations
343
+ - Fix problem with reserved words coming back pre-quoted from #indexes in postgres
344
+ - JRUBY-2205: Fix N^2 allocation of bytelists for mysql quoting (taw)
345
+ - Attempt a fix for Rubyforge 18059
346
+ - Upgrade derby to 10.3.2.1
347
+ - Fix db:create etc. in the case where JDBC is loaded in Rails' preinitializer.rb
348
+ - Fix db:drop to actually work
349
+ - Fix for Rubyforge #11567 (Matt Williams)
350
+
351
+ == 0.7.2
352
+
353
+ - JRUBY-1905: add_column for derby, hsqldb, and postgresql (Stephen Bannasch)
354
+ - Fix db:create for JDBC
355
+ - Support Rails 2 with the old "require 'jdbc_adapter'" approach
356
+ - JRUBY-1966: Instead of searching for just tables, search for views and tables.
357
+ - JRUBY-1583: DB2 numeric quoting (Ryan Shillington)
358
+ - JRUBY-1634: Oracle DATE type mapping (Daniel Wintschel)
359
+ - JRUBY-1543: rename_column issue with more recent MySQL drivers (Oliver Schmelzle)
360
+ - Rubyforge #15074: ConnectionAdapters::JdbcAdapter.indexes is missing name and
361
+ schema_name parameters in the method signature (Igor Minar)
362
+ - Rubyforge #13558: definition for the indexes method (T Meyarivan)
363
+ - JRUBY-2051: handle schemaname and tablename more correctly for columns
364
+ - JRUBY-2102: Postgres Adapter cannot handle datetime type (Rainer Hahnekamp)
365
+ - JRUBY-2018: Oracle behind ActiveRecord-JDBC fails with "Invalid column index" (K Venkatasubramaniyan)
366
+ - JRUBY-2012: jdbc_mysql structure dump fails for mysql views (Tyler Jennings)
367
+
368
+ == 0.7.1
369
+
370
+ - Add adapter and driver for H2 courtesy of Caleb Land
371
+ - Fix "undefined method `last' for {}:Hash" error introduced with new Rake 0.8.1 (JRUBY-1859)
372
+
373
+ == 0.7
374
+
375
+ - PLEASE NOTE: This release is not compatible with JRuby releases earlier than
376
+ 1.0.3 or 1.1b2. If you must use JRuby 1.0.2 or earlier, please install the
377
+ 0.6 release.
378
+ - Release coincides with JRuby 1.0.3 and JRuby 1.1b2 releases
379
+ - Simultaneous support for JRuby trunk and 1.0 branch
380
+ - Get rid of log_no_bench method, so we time SQL execution again.
381
+ - Implement #select_rows
382
+ - MySQL migration and quoting updates
383
+
384
+ == 0.6
385
+
386
+ - Gem is renamed to "activerecord-jdbc-adapter" to follow new conventions
387
+ introduced in Rails 2.0 for third-party adapters. Rails 2.0 compatibility is
388
+ introduced.
389
+ - Add dependency on ActiveRecord >= 1.14 (from the Rails 1.1.x release)
390
+ - New drivers (jdbc-XXX) and adapter (activerecord-jdbcXXX-adapter) gems
391
+ available separately. See the README.txt file for details.
392
+ - Plain "jdbc" driver is still available if you want to use the full
393
+ driver/url way of specifying the driver.
394
+ - More bugfixes to Oracle and SQLServer courtesy of Ola & ThoughtWorks
395
+
396
+ == 0.5
397
+
398
+ - Release coincides with JRuby 1.0.1 release
399
+ - It is no longer necessary to specify :driver and :url configuration
400
+ parameters for the mysql, postgresql, oracle, derby, hsqldb, and h2
401
+ adapters. The previous configuration is still valid and compatible, but for
402
+ new applications, this makes it possible to use the exact same database.yml
403
+ configuration as Rails applications running under native Ruby.
404
+ - JDBC drivers can now be dynamically loaded by Ruby code, without being on
405
+ the classpath prior to launching JRuby. Simply use "require
406
+ 'jdbc-driver.jar'" in JRuby code to add it to the runtime classpath.
407
+ - Updates to HSQL, MS SQLServer, Postgres, Oracle and Derby adapters
408
+
409
+ == 0.4
410
+
411
+ - Release coincides with JRuby 1.0 release
412
+ - Shoring up PostgreSQL (courtesy Dudley Flanders) and HSQL (courtesy Matthew
413
+ Williams)
414
+ - Fix timestamps on Oracle to use DATE (as everything else)
415
+ - Derby fixes: Fix for open result set issue, better structure dump, quoting,
416
+ column type changing
417
+ - Sybase type recognition fix (courtesy Dean Mao)
418
+
419
+ == 0.3.1
420
+
421
+ - Derby critical fixes shortly after 0.3
422
+
423
+ == 0.3
424
+
425
+ - Release coincides with JRuby 1.0.0RC1 release
426
+ - Improvements for Derby, Postgres, and Oracle, all of which are running
427
+ > 95% of AR tests
428
+
429
+ == 0.2.4
430
+
431
+ - Release coincides with JRuby 0.9.9 release
432
+ - JRuby 0.9.9 is required
433
+ - MySQL close to 100% working
434
+ - Derby improvements
435
+ - DECIMAL/NUMERIC/FLOAT/REAL bugs fixed with type recognition for Oracle,
436
+ Postgres, etc.
437
+ - HSQLDB has regressed this release and may not be functioning; we'll get it
438
+ fixed for the next one
439
+
440
+ == 0.2.3
441
+
442
+ - Release coincides (and compatible) with JRuby 0.9.8 release
443
+ - 8 bugs fixed: see http://rubyurl.com/0Da
444
+ - Improvements and compatibility fixes for Rails 1.2.x
445
+
446
+ == 0.2.1, 0.2.2
447
+
448
+ - Early releases, added better support for multiple databases
449
+
450
+ == 0.0.1
451
+
452
+ - Initial, very alpha release
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2006-2008 Nick Sieger <nick@nicksieger.com>
2
+ Copyright (c) 2006-2008 Ola Bini <ola.bini@gmail.com>
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining
5
+ a copy of this software and associated documentation files (the
6
+ "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish,
8
+ distribute, sublicense, and/or sell copies of the Software, and to
9
+ permit persons to whom the Software is furnished to do so, subject to
10
+ the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.