kb-activerecord-jdbc-adapter 0.9.7.1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. data/History.txt +296 -0
  2. data/LICENSE.txt +21 -0
  3. data/Manifest.txt +139 -0
  4. data/README.txt +219 -0
  5. data/Rakefile +10 -0
  6. data/lib/active_record/connection_adapters/cachedb_adapter.rb +1 -0
  7. data/lib/active_record/connection_adapters/derby_adapter.rb +13 -0
  8. data/lib/active_record/connection_adapters/h2_adapter.rb +13 -0
  9. data/lib/active_record/connection_adapters/hsqldb_adapter.rb +13 -0
  10. data/lib/active_record/connection_adapters/informix_adapter.rb +1 -0
  11. data/lib/active_record/connection_adapters/jdbc_adapter.rb +661 -0
  12. data/lib/active_record/connection_adapters/jdbc_adapter_spec.rb +26 -0
  13. data/lib/active_record/connection_adapters/jndi_adapter.rb +1 -0
  14. data/lib/active_record/connection_adapters/mssql_adapter.rb +13 -0
  15. data/lib/active_record/connection_adapters/mysql_adapter.rb +13 -0
  16. data/lib/active_record/connection_adapters/oracle_adapter.rb +1 -0
  17. data/lib/active_record/connection_adapters/postgresql_adapter.rb +13 -0
  18. data/lib/active_record/connection_adapters/sqlite3_adapter.rb +13 -0
  19. data/lib/activerecord-jdbc-adapter.rb +6 -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 +6 -0
  24. data/lib/arel/engines/sql/compilers/jdbc_compiler.rb +6 -0
  25. data/lib/generators/jdbc/jdbc_generator.rb +9 -0
  26. data/lib/jdbc_adapter.rb +27 -0
  27. data/lib/jdbc_adapter/jdbc.rake +122 -0
  28. data/lib/jdbc_adapter/jdbc_adapter_internal.jar +0 -0
  29. data/lib/jdbc_adapter/jdbc_cachedb.rb +33 -0
  30. data/lib/jdbc_adapter/jdbc_db2.rb +222 -0
  31. data/lib/jdbc_adapter/jdbc_derby.rb +426 -0
  32. data/lib/jdbc_adapter/jdbc_firebird.rb +109 -0
  33. data/lib/jdbc_adapter/jdbc_hsqldb.rb +221 -0
  34. data/lib/jdbc_adapter/jdbc_informix.rb +147 -0
  35. data/lib/jdbc_adapter/jdbc_mimer.rb +145 -0
  36. data/lib/jdbc_adapter/jdbc_mssql.rb +468 -0
  37. data/lib/jdbc_adapter/jdbc_mysql.rb +260 -0
  38. data/lib/jdbc_adapter/jdbc_oracle.rb +397 -0
  39. data/lib/jdbc_adapter/jdbc_postgre.rb +531 -0
  40. data/lib/jdbc_adapter/jdbc_sqlite3.rb +386 -0
  41. data/lib/jdbc_adapter/jdbc_sybase.rb +50 -0
  42. data/lib/jdbc_adapter/missing_functionality_helper.rb +87 -0
  43. data/lib/jdbc_adapter/railtie.rb +9 -0
  44. data/lib/jdbc_adapter/rake_tasks.rb +10 -0
  45. data/lib/jdbc_adapter/tsql_helper.rb +69 -0
  46. data/lib/jdbc_adapter/version.rb +5 -0
  47. data/lib/pg.rb +4 -0
  48. data/rails_generators/jdbc_generator.rb +15 -0
  49. data/rails_generators/templates/config/initializers/jdbc.rb +7 -0
  50. data/rails_generators/templates/lib/tasks/jdbc.rake +8 -0
  51. data/rakelib/compile.rake +23 -0
  52. data/rakelib/package.rake +91 -0
  53. data/rakelib/rails.rake +41 -0
  54. data/rakelib/test.rake +78 -0
  55. data/src/java/jdbc_adapter/JdbcAdapterInternalService.java +53 -0
  56. data/src/java/jdbc_adapter/JdbcConnectionFactory.java +36 -0
  57. data/src/java/jdbc_adapter/JdbcDerbySpec.java +293 -0
  58. data/src/java/jdbc_adapter/JdbcMySQLSpec.java +134 -0
  59. data/src/java/jdbc_adapter/MssqlRubyJdbcConnection.java +71 -0
  60. data/src/java/jdbc_adapter/PostgresRubyJdbcConnection.java +55 -0
  61. data/src/java/jdbc_adapter/RubyJdbcConnection.java +1176 -0
  62. data/src/java/jdbc_adapter/SQLBlock.java +27 -0
  63. data/src/java/jdbc_adapter/Sqlite3RubyJdbcConnection.java +41 -0
  64. data/test/abstract_db_create.rb +107 -0
  65. data/test/activerecord/connection_adapters/type_conversion_test.rb +31 -0
  66. data/test/activerecord/connections/native_jdbc_mysql/connection.rb +25 -0
  67. data/test/cachedb_simple_test.rb +6 -0
  68. data/test/db/cachedb.rb +9 -0
  69. data/test/db/db2.rb +9 -0
  70. data/test/db/derby.rb +14 -0
  71. data/test/db/h2.rb +11 -0
  72. data/test/db/hsqldb.rb +12 -0
  73. data/test/db/informix.rb +11 -0
  74. data/test/db/jdbc.rb +11 -0
  75. data/test/db/jndi_config.rb +30 -0
  76. data/test/db/logger.rb +3 -0
  77. data/test/db/mssql.rb +9 -0
  78. data/test/db/mysql.rb +10 -0
  79. data/test/db/oracle.rb +34 -0
  80. data/test/db/postgres.rb +9 -0
  81. data/test/db/sqlite3.rb +15 -0
  82. data/test/db2_simple_test.rb +10 -0
  83. data/test/derby_migration_test.rb +21 -0
  84. data/test/derby_multibyte_test.rb +12 -0
  85. data/test/derby_simple_test.rb +21 -0
  86. data/test/generic_jdbc_connection_test.rb +9 -0
  87. data/test/h2_simple_test.rb +6 -0
  88. data/test/has_many_through.rb +79 -0
  89. data/test/helper.rb +5 -0
  90. data/test/hsqldb_simple_test.rb +6 -0
  91. data/test/informix_simple_test.rb +48 -0
  92. data/test/jdbc_adapter/jdbc_db2_test.rb +26 -0
  93. data/test/jdbc_adapter/jdbc_sybase_test.rb +33 -0
  94. data/test/jdbc_common.rb +25 -0
  95. data/test/jndi_callbacks_test.rb +38 -0
  96. data/test/jndi_test.rb +35 -0
  97. data/test/manualTestDatabase.rb +191 -0
  98. data/test/minirunit.rb +109 -0
  99. data/test/minirunit/testConnect.rb +14 -0
  100. data/test/minirunit/testH2.rb +73 -0
  101. data/test/minirunit/testHsqldb.rb +73 -0
  102. data/test/minirunit/testLoadActiveRecord.rb +3 -0
  103. data/test/minirunit/testMysql.rb +83 -0
  104. data/test/minirunit/testRawSelect.rb +24 -0
  105. data/test/models/add_not_null_column_to_table.rb +12 -0
  106. data/test/models/auto_id.rb +18 -0
  107. data/test/models/data_types.rb +28 -0
  108. data/test/models/entry.rb +23 -0
  109. data/test/models/mixed_case.rb +20 -0
  110. data/test/models/reserved_word.rb +18 -0
  111. data/test/models/string_id.rb +18 -0
  112. data/test/models/validates_uniqueness_of_string.rb +19 -0
  113. data/test/mssql_db_create_test.rb +26 -0
  114. data/test/mssql_identity_insert_test.rb +19 -0
  115. data/test/mssql_legacy_types_test.rb +58 -0
  116. data/test/mssql_limit_offset_test.rb +108 -0
  117. data/test/mssql_multibyte_test.rb +18 -0
  118. data/test/mssql_simple_test.rb +49 -0
  119. data/test/mysql_db_create_test.rb +25 -0
  120. data/test/mysql_info_test.rb +62 -0
  121. data/test/mysql_multibyte_test.rb +10 -0
  122. data/test/mysql_nonstandard_primary_key_test.rb +42 -0
  123. data/test/mysql_simple_test.rb +32 -0
  124. data/test/oracle_simple_test.rb +54 -0
  125. data/test/pick_rails_version.rb +3 -0
  126. data/test/postgres_db_create_test.rb +21 -0
  127. data/test/postgres_mixed_case_test.rb +19 -0
  128. data/test/postgres_nonseq_pkey_test.rb +40 -0
  129. data/test/postgres_reserved_test.rb +22 -0
  130. data/test/postgres_schema_search_path_test.rb +46 -0
  131. data/test/postgres_simple_test.rb +13 -0
  132. data/test/simple.rb +494 -0
  133. data/test/sqlite3_simple_test.rb +233 -0
  134. data/test/sybase_jtds_simple_test.rb +6 -0
  135. metadata +230 -0
data/History.txt ADDED
@@ -0,0 +1,296 @@
1
+ == 0.9.7
2
+
3
+ - JRUBY-4781: Fix multiple database connection collision issue w/
4
+ Oracle
5
+ - ACTIVERECORD_JDBC-115: Support SAVEPOINTS for MySQL and PG so that
6
+ nested transactions can be faked
7
+ - ACTIVERECORD_JDBC-116: Handle schema.table better for MySQL (thanks
8
+ Dilshod Mukhtarov)
9
+ - Fix 'Wrong # of arguments (2 for 1)' issue with #create_database for
10
+ MySQL and AR 3.0
11
+ - SQLServer 2000 support (thanks Jay McGaffigan)
12
+
13
+ == 0.9.6
14
+
15
+ - The Oracle release!
16
+ - Oracle should be working much better with this release. Also updated
17
+ to work with Rails 3.
18
+ - Get all unit tests running cleanly on Oracle, fixing previous
19
+ datetime/timezone issues.
20
+ - ACTIVERECORD_JDBC-83: Add :sequence_start_value option to
21
+ create_table, following oracle_enhanced adapter
22
+ - ACTIVERECORD_JDBC-33: Don't double-quote table names in oracle
23
+ - ACTIVERECORD_JDBC-17: Fix Oracle primary keys so that /^NUMBER$/ => :integer
24
+ - Fix remaining blockers ACTIVERECORD_JDBC-82, JRUBY-3675,
25
+ ACTIVERECORD_JDBC-22, ACTIVERECORD_JDBC-27, JRUBY-4759
26
+
27
+ == 0.9.5
28
+
29
+ - The MSSQL release, courtesy of Mike Williams and Lonely
30
+ Planet.
31
+ - JRuby + AR-JDBC is now seen as the hassle-free way of using Rails
32
+ with SQLServer!
33
+ - Many fixes for MSSQL, including ACTIVERECORD_JDBC-18,
34
+ ACTIVERECORD_JDBC-41, ACTIVERECORD_JDBC-56, ACTIVERECORD_JDBC-94,
35
+ ACTIVERECORD_JDBC-99, JRUBY-3805, JRUBY-3793, JRUBY-4221
36
+ - All tests pass on Rails 3.0.0.beta3!
37
+
38
+ == 0.9.4
39
+
40
+ - ACTIVERECORD_JDBC-96: DB2 JdbcSpec cannot dump schema correctly
41
+ (Youhei Kondou)
42
+ - ACTIVERECORD_JDBC-97: Dont use Rails 3 deprecated constants (David
43
+ Calavera)
44
+ - Updates for rake db:schema:dump compatibility with Rails 2.3+ and
45
+ MySQL (Joakim Kolsj�)
46
+ - Rails 3.0.0.beta2 compatibility
47
+ - Return of Derby, H2, Hsqldb support (requires AR >= 3.0.0.beta2)
48
+
49
+ == 0.9.3
50
+
51
+ - Rails 3 compatibility
52
+ - PLEASE NOTE: ActiveRecord in Rails 3 has changed in a way that
53
+ doesn't allow non-standard DBs (such as the Derby and H2 embedded
54
+ DBs) to work. We're investigating the effort required to support
55
+ these databases and hope to have something for a future release.
56
+ - ACTIVERECORD_JDBC-91: Fix schema search path for PostgreSQL (Alex
57
+ Kuebo)
58
+ - ACTIVERECORD_JDBC-87: DB2 ID insert fix (Youhei Kondou)
59
+ - ACTIVERECORD_JDBC-90: MSSQL fix for DATEs (jlangenauer)
60
+ - ACTIVERECORD_JDBC-93: Fix string IDs for sqlite3, hsql/h2 (moser)
61
+ - ACTIVERECORD_JDBC-86: Fix Derby queries starting with VALUES (Dwayne Litzenberger)
62
+ - ACTIVERECORD_JDBC-95: Fix INSERT ... RETURNING for PostgreSQL
63
+
64
+ == 0.9.2
65
+
66
+ - The main, highly awaited fix for this release is a solution to the
67
+ rake db:create/db:drop issue. The main change is a new 'jdbc' rails
68
+ generator that should be run once to prepare a Rails application to
69
+ use JDBC. The upside of this generator is that you no longer will
70
+ need to alter database.yml for JDBC. See the README.txt for details.
71
+ - Cleanup and reconnect if errors occur during begin/rollback
72
+ (Jean-Dominique Morani, Christian Seiler)
73
+ - ACTIVERECORD_JDBC-1: Add #drop_database method for oracle (does the
74
+ same thing as recreate_database)
75
+ - Sqlite3 and MSSQL fixes (Jean-Dominique Morani)
76
+ - JRUBY-3512: Treat LONGVARCHAR as a CLOB for Mssql
77
+ - JRUBY-3624: Upgrade Derby to 10.5.3.0 and add native limit/offset
78
+ support (Christopher Saunders)
79
+ - JRUBY-3616: Fix postgres non-sequence primary keys (David Kellum)
80
+ - JRUBY-3669: Fix Oracle case with unconfigured schema (Dan Powell)
81
+ - Fixed quote_column_name of jdbc_oracle to accept numbers (Marcelo
82
+ Murad)
83
+ - Fix for mysql tables with non standard primary keys such that the
84
+ schema dump is correct (Nick Zalabak)
85
+ - MSSQL fixes from Mike Luu:
86
+ - add support for MSSQL uniqueidentifier datatype
87
+ - always quote strings using unicode identifier for MSSQL
88
+ - Changes primary_key generation to use always instead of by default
89
+ for DB2 (Amos King)
90
+ - Improves the SQLite adapter by fixing rename_column, change_column,
91
+ change_column_default, changing remove_column, and adding
92
+ remove_columns (Ryan Baumann)
93
+ - More oracle love courtesy Ben Browning and Jens Himmelreich
94
+ - JRUBY-3608: Add missing change_column_null method for postgres
95
+ - JRUBY-3508: Fix quoting of integer and float columns
96
+
97
+ == 0.9.1
98
+
99
+ - We did a lot of internal cleanup this release in the hopes of
100
+ simplifying the code and increasing performance.
101
+ - Many SQLite updates (thanks Nils Christian Haugen)
102
+ - JRUBY-2912: Fix MSSQL create/drop database (Joern Hartmann)
103
+ - JRUBY-2767: Mistake in selecting identity with H2/HSQLDB
104
+ - JRUBY-2884: jdbc_postgre.rb issue handling nil booleans (also a fix
105
+ for hsqldb/h2) + tests
106
+ - JRUBY-2995: activerecord jdbc derby adapter should quote columns
107
+ called 'year'
108
+ - JRUBY-2897: jdbc_postgre.rb needs microsecond support
109
+ - JRUBY-3282: Upgrade to derby 10.4.2.0 to allow unique constraints
110
+ with nullable columns
111
+ - Update h2 from 1.0.63 to 1.1.107 in driver
112
+ - JRUBY-3026: [Derby] Allow select/delete/update conditions with
113
+ comparison to NULL using '='
114
+ - JRUBY-2996: ...(actually this fixes only remaining issue of this bug
115
+ which was symbols making into quote were exploding
116
+ - JRUBY-2691: Update sybase driver to pass simple unit tests with jtds
117
+ and verify it works with the new dialect keyword. patch by Leigh
118
+ Kennedy
119
+ - Make :float type work on h2,hsql [returned as string]. Make :float
120
+ work on hsqldb (no paren value supported). Make REAL_TYPE just
121
+ return RubyFloat
122
+ - JRUBY-3222: Upgrade #type_to_sql to variation of AR 2.1.2 version
123
+ - Add patch supplied in JRUBY-3489 (patch by Jean-Dominique Morani)
124
+ - Various Oracle fixes by edsono
125
+ - JRUBY-2688: Don't hard-code MySQL connection character encoding to
126
+ utf8
127
+
128
+ == 0.9
129
+
130
+ - Now updated to support ActiveRecord 2.2. JNDI-based connections will
131
+ automatically connect/disconnect for every AR connection pool
132
+ checkout/checkin. For best results, set your pool: parameter >= the
133
+ actual maximum size of the JNDI connection pool. (We'll look at how
134
+ to eliminate the need to configure AR's pool in the future.)
135
+ - NEW! Informix support courtesy of Javier Fernandez-Ivern.
136
+ - Backport another Oracle CLOB issue, thanks Edson C�sar.
137
+ - Rubyforge #22018: chomp final trailing semicolon for oracle
138
+ - JRUBY-2848: Fix NPE error in set_native_database_types
139
+ - Rework oracle lob saving callback to be Rails 2.1 friendly (assist
140
+ from court3nay)
141
+ - JRUBY-2715: Add create/drop database methods to Postgres (Peter Williams)
142
+ - JRUBY-3183: Fix structure dump for Postgres (Ryan Bell)
143
+ - JRUBY-3184: recreate_database for test database working for PG (Ryan Bell)
144
+ - JRUBY-3186: disable referential integrity for PG (Ryan Bell)
145
+ - Authoritative repository now hosted at
146
+ git://github.com/nicksieger/activerecord-jdbc-adapter.git; rubyforge
147
+ svn trunk cleaned out.
148
+
149
+ == 0.8.2
150
+
151
+ - Added an optional config key called :dialect. Using :dialect allows you to
152
+ override the default SQL dialect for the driver class being used. There are
153
+ a few cases for this:
154
+ - Using using Sybase w/ the jTDS driver.
155
+ - Using rebranded drivers.
156
+ - It makes more sense to use :dialect, rather then :driver when using JNDI.
157
+ - JRUBY-2619: Typo with :test config causing problems with dev database (Igor Minar)
158
+ - 20524, JRUBY-2612: Since when did I think that there was a #true? method on Object?
159
+
160
+ == 0.8.1
161
+
162
+ - Now sporting a JDBC sqlite3 adapter! Thanks Joseph Athman.
163
+ - Added support for InterSystems Cache database (Ryan Bell)
164
+ - Fix for JRUBY-2256
165
+ - JRUBY-1638, JRUBY-2404, JRUBY-2463: schema.table handling and Oracle NUMBER fixes (Darcy Schultz & Jesse Hu)
166
+ - Add structure dump and other DDL-ish for DB2 (courtesy abedra and stuarthalloway)
167
+ - Fix missing quote_table_name function under Rails 1.2.6 and earlier
168
+ - Small tweaks to jdbc.rake to select proper config
169
+ - JRUBY-2011: Fix MSSQL string un-quoting issue (Silvio Fonseca)
170
+ - JRUBY-1977, 17427: Fix information_schema select issue with MSSQL (Matt Burke)
171
+ - 20479: Improve get_table_name for MSSQL (Aslak Hellesøy)
172
+ - 20243: numerics improvements for MSSQL (Aslak Hellesøy)
173
+ - 20172: don't quote table names for MSSQL (Thor Marius Henrichsen)
174
+ - 19729: check for primary key existence in postgres during insert (Martin Luder)
175
+ - JRUBY-2297, 18846: retrying failing SQL statements is harmful when not autocommitting (Craig McMillan)
176
+ - 10021: very preliminary sybase support. (Mark Atkinson) Not usable until collision w/ sqlserver driver is resolved.
177
+ - JRUBY-2312, JRUBY-2319, JRUBY-2322: Oracle timestamping issues (Jesse Hu & Michael König)
178
+ - JRUBY-2422: Fix MySQL referential integrity and rollback issues
179
+ - JRUBY-2382: mysql string quoting fails with ArrayIndexOutofBoundsException
180
+
181
+ == 0.8
182
+
183
+ - NOTE: This release is only compatible with JRuby 1.1RC3 or later.
184
+ - Because of recent API changes in trunk in preparation for JRuby 1.1, this release is not
185
+ backward compatible with previous JRuby releases. Hence the version bump.
186
+ - Internal: convert Java methods to be defined with annotations
187
+ - Fix problem with reserved words coming back pre-quoted from #indexes in postgres
188
+ - JRUBY-2205: Fix N^2 allocation of bytelists for mysql quoting (taw)
189
+ - Attempt a fix for Rubyforge 18059
190
+ - Upgrade derby to 10.3.2.1
191
+ - Fix db:create etc. in the case where JDBC is loaded in Rails' preinitializer.rb
192
+ - Fix db:drop to actually work
193
+ - Fix for Rubyforge #11567 (Matt Williams)
194
+
195
+ == 0.7.2
196
+
197
+ - JRUBY-1905: add_column for derby, hsqldb, and postgresql (Stephen Bannasch)
198
+ - Fix db:create for JDBC
199
+ - Support Rails 2 with the old "require 'jdbc_adapter'" approach
200
+ - JRUBY-1966: Instead of searching for just tables, search for views and tables.
201
+ - JRUBY-1583: DB2 numeric quoting (Ryan Shillington)
202
+ - JRUBY-1634: Oracle DATE type mapping (Daniel Wintschel)
203
+ - JRUBY-1543: rename_column issue with more recent MySQL drivers (Oliver Schmelzle)
204
+ - Rubyforge #15074: ConnectionAdapters::JdbcAdapter.indexes is missing name and
205
+ schema_name parameters in the method signature (Igor Minar)
206
+ - Rubyforge #13558: definition for the indexes method (T Meyarivan)
207
+ - JRUBY-2051: handle schemaname and tablename more correctly for columns
208
+ - JRUBY-2102: Postgres Adapter cannot handle datetime type (Rainer Hahnekamp)
209
+ - JRUBY-2018: Oracle behind ActiveRecord-JDBC fails with "Invalid column index" (K Venkatasubramaniyan)
210
+ - JRUBY-2012: jdbc_mysql structure dump fails for mysql views (Tyler Jennings)
211
+
212
+ == 0.7.1
213
+
214
+ - Add adapter and driver for H2 courtesy of Caleb Land
215
+ - Fix "undefined method `last' for {}:Hash" error introduced with new Rake 0.8.1 (JRUBY-1859)
216
+
217
+ == 0.7
218
+
219
+ - PLEASE NOTE: This release is not compatible with JRuby releases earlier than
220
+ 1.0.3 or 1.1b2. If you must use JRuby 1.0.2 or earlier, please install the
221
+ 0.6 release.
222
+ - Release coincides with JRuby 1.0.3 and JRuby 1.1b2 releases
223
+ - Simultaneous support for JRuby trunk and 1.0 branch
224
+ - Get rid of log_no_bench method, so we time SQL execution again.
225
+ - Implement #select_rows
226
+ - MySQL migration and quoting updates
227
+
228
+ == 0.6
229
+
230
+ - Gem is renamed to "activerecord-jdbc-adapter" to follow new conventions
231
+ introduced in Rails 2.0 for third-party adapters. Rails 2.0 compatibility is
232
+ introduced.
233
+ - Add dependency on ActiveRecord >= 1.14 (from the Rails 1.1.x release)
234
+ - New drivers (jdbc-XXX) and adapter (activerecord-jdbcXXX-adapter) gems
235
+ available separately. See the README.txt file for details.
236
+ - Plain "jdbc" driver is still available if you want to use the full
237
+ driver/url way of specifying the driver.
238
+ - More bugfixes to Oracle and SQLServer courtesy of Ola & ThoughtWorks
239
+
240
+ == 0.5
241
+
242
+ - Release coincides with JRuby 1.0.1 release
243
+ - It is no longer necessary to specify :driver and :url configuration
244
+ parameters for the mysql, postgresql, oracle, derby, hsqldb, and h2
245
+ adapters. The previous configuration is still valid and compatible, but for
246
+ new applications, this makes it possible to use the exact same database.yml
247
+ configuration as Rails applications running under native Ruby.
248
+ - JDBC drivers can now be dynamically loaded by Ruby code, without being on
249
+ the classpath prior to launching JRuby. Simply use "require
250
+ 'jdbc-driver.jar'" in JRuby code to add it to the runtime classpath.
251
+ - Updates to HSQL, MS SQLServer, Postgres, Oracle and Derby adapters
252
+
253
+ == 0.4
254
+
255
+ - Release coincides with JRuby 1.0 release
256
+ - Shoring up PostgreSQL (courtesy Dudley Flanders) and HSQL (courtesy Matthew
257
+ Williams)
258
+ - Fix timestamps on Oracle to use DATE (as everything else)
259
+ - Derby fixes: Fix for open result set issue, better structure dump, quoting,
260
+ column type changing
261
+ - Sybase type recognition fix (courtesy Dean Mao)
262
+
263
+ == 0.3.1
264
+
265
+ - Derby critical fixes shortly after 0.3
266
+
267
+ == 0.3
268
+
269
+ - Release coincides with JRuby 1.0.0RC1 release
270
+ - Improvements for Derby, Postgres, and Oracle, all of which are running
271
+ > 95% of AR tests
272
+
273
+ == 0.2.4
274
+
275
+ - Release coincides with JRuby 0.9.9 release
276
+ - JRuby 0.9.9 is required
277
+ - MySQL close to 100% working
278
+ - Derby improvements
279
+ - DECIMAL/NUMERIC/FLOAT/REAL bugs fixed with type recognition for Oracle,
280
+ Postgres, etc.
281
+ - HSQLDB has regressed this release and may not be functioning; we'll get it
282
+ fixed for the next one
283
+
284
+ == 0.2.3
285
+
286
+ - Release coincides (and compatible) with JRuby 0.9.8 release
287
+ - 8 bugs fixed: see http://rubyurl.com/0Da
288
+ - Improvements and compatibility fixes for Rails 1.2.x
289
+
290
+ == 0.2.1, 0.2.2
291
+
292
+ - Early releases, added better support for multiple databases
293
+
294
+ == 0.0.1
295
+
296
+ - 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.
data/Manifest.txt ADDED
@@ -0,0 +1,139 @@
1
+ History.txt
2
+ Manifest.txt
3
+ README.txt
4
+ Rakefile
5
+ LICENSE.txt
6
+ lib/activerecord-jdbc-adapter.rb
7
+ lib/jdbc_adapter.rb
8
+ lib/pg.rb
9
+ lib/active_record/connection_adapters/cachedb_adapter.rb
10
+ lib/active_record/connection_adapters/derby_adapter.rb
11
+ lib/active_record/connection_adapters/h2_adapter.rb
12
+ lib/active_record/connection_adapters/hsqldb_adapter.rb
13
+ lib/active_record/connection_adapters/informix_adapter.rb
14
+ lib/active_record/connection_adapters/jdbc_adapter.rb
15
+ lib/active_record/connection_adapters/jdbc_adapter_spec.rb
16
+ lib/active_record/connection_adapters/jndi_adapter.rb
17
+ lib/active_record/connection_adapters/mssql_adapter.rb
18
+ lib/active_record/connection_adapters/mysql_adapter.rb
19
+ lib/active_record/connection_adapters/oracle_adapter.rb
20
+ lib/active_record/connection_adapters/postgresql_adapter.rb
21
+ lib/active_record/connection_adapters/sqlite3_adapter.rb
22
+ lib/arel/engines/sql/compilers/db2_compiler.rb
23
+ lib/arel/engines/sql/compilers/derby_compiler.rb
24
+ lib/arel/engines/sql/compilers/h2_compiler.rb
25
+ lib/arel/engines/sql/compilers/hsqldb_compiler.rb
26
+ lib/arel/engines/sql/compilers/jdbc_compiler.rb
27
+ lib/generators/jdbc/jdbc_generator.rb
28
+ lib/jdbc_adapter/jdbc_cachedb.rb
29
+ lib/jdbc_adapter/jdbc_db2.rb
30
+ lib/jdbc_adapter/jdbc_derby.rb
31
+ lib/jdbc_adapter/jdbc_firebird.rb
32
+ lib/jdbc_adapter/jdbc_hsqldb.rb
33
+ lib/jdbc_adapter/jdbc_informix.rb
34
+ lib/jdbc_adapter/jdbc_mimer.rb
35
+ lib/jdbc_adapter/jdbc_mssql.rb
36
+ lib/jdbc_adapter/jdbc_mysql.rb
37
+ lib/jdbc_adapter/jdbc_oracle.rb
38
+ lib/jdbc_adapter/jdbc_postgre.rb
39
+ lib/jdbc_adapter/jdbc_sqlite3.rb
40
+ lib/jdbc_adapter/jdbc_sybase.rb
41
+ lib/jdbc_adapter/missing_functionality_helper.rb
42
+ lib/jdbc_adapter/railtie.rb
43
+ lib/jdbc_adapter/rake_tasks.rb
44
+ lib/jdbc_adapter/tsql_helper.rb
45
+ lib/jdbc_adapter/version.rb
46
+ lib/jdbc_adapter/jdbc_adapter_internal.jar
47
+ test/abstract_db_create.rb
48
+ test/cachedb_simple_test.rb
49
+ test/db2_simple_test.rb
50
+ test/derby_migration_test.rb
51
+ test/derby_multibyte_test.rb
52
+ test/derby_simple_test.rb
53
+ test/generic_jdbc_connection_test.rb
54
+ test/h2_simple_test.rb
55
+ test/has_many_through.rb
56
+ test/helper.rb
57
+ test/hsqldb_simple_test.rb
58
+ test/informix_simple_test.rb
59
+ test/jdbc_common.rb
60
+ test/jndi_callbacks_test.rb
61
+ test/jndi_test.rb
62
+ test/manualTestDatabase.rb
63
+ test/minirunit.rb
64
+ test/mssql_db_create_test.rb
65
+ test/mssql_identity_insert_test.rb
66
+ test/mssql_legacy_types_test.rb
67
+ test/mssql_limit_offset_test.rb
68
+ test/mssql_multibyte_test.rb
69
+ test/mssql_simple_test.rb
70
+ test/mysql_db_create_test.rb
71
+ test/mysql_info_test.rb
72
+ test/mysql_multibyte_test.rb
73
+ test/mysql_nonstandard_primary_key_test.rb
74
+ test/mysql_simple_test.rb
75
+ test/oracle_simple_test.rb
76
+ test/pick_rails_version.rb
77
+ test/postgres_db_create_test.rb
78
+ test/postgres_mixed_case_test.rb
79
+ test/postgres_nonseq_pkey_test.rb
80
+ test/postgres_reserved_test.rb
81
+ test/postgres_schema_search_path_test.rb
82
+ test/postgres_simple_test.rb
83
+ test/simple.rb
84
+ test/sqlite3_simple_test.rb
85
+ test/sybase_jtds_simple_test.rb
86
+ test/activerecord/connection_adapters/type_conversion_test.rb
87
+ test/activerecord/connections/native_jdbc_mysql/connection.rb
88
+ test/db/cachedb.rb
89
+ test/db/db2.rb
90
+ test/db/derby.rb
91
+ test/db/h2.rb
92
+ test/db/hsqldb.rb
93
+ test/db/informix.rb
94
+ test/db/jdbc.rb
95
+ test/db/jndi_config.rb
96
+ test/db/logger.rb
97
+ test/db/mssql.rb
98
+ test/db/mysql.rb
99
+ test/db/oracle.rb
100
+ test/db/postgres.rb
101
+ test/db/sqlite3.rb
102
+ test/jdbc_adapter/jdbc_db2_test.rb
103
+ test/jdbc_adapter/jdbc_sybase_test.rb
104
+ test/minirunit/testConnect.rb
105
+ test/minirunit/testH2.rb
106
+ test/minirunit/testHsqldb.rb
107
+ test/minirunit/testLoadActiveRecord.rb
108
+ test/minirunit/testMysql.rb
109
+ test/minirunit/testRawSelect.rb
110
+ test/models/add_not_null_column_to_table.rb
111
+ test/models/auto_id.rb
112
+ test/models/data_types.rb
113
+ test/models/entry.rb
114
+ test/models/mixed_case.rb
115
+ test/models/reserved_word.rb
116
+ test/models/string_id.rb
117
+ test/models/validates_uniqueness_of_string.rb
118
+ lib/jdbc_adapter/jdbc.rake
119
+ src/java/jdbc_adapter/JdbcAdapterInternalService.java
120
+ src/java/jdbc_adapter/JdbcConnectionFactory.java
121
+ src/java/jdbc_adapter/JdbcDerbySpec.java
122
+ src/java/jdbc_adapter/JdbcMySQLSpec.java
123
+ src/java/jdbc_adapter/MssqlRubyJdbcConnection.java
124
+ src/java/jdbc_adapter/PostgresRubyJdbcConnection.java
125
+ src/java/jdbc_adapter/RubyJdbcConnection.java
126
+ src/java/jdbc_adapter/SQLBlock.java
127
+ src/java/jdbc_adapter/Sqlite3RubyJdbcConnection.java
128
+ rakelib/compile.rake
129
+ rakelib/package.rake
130
+ rakelib/rails.rake
131
+ rakelib/test.rake
132
+ rails_generators/jdbc_generator.rb
133
+ rails_generators/templates
134
+ rails_generators/templates/config
135
+ rails_generators/templates/lib
136
+ rails_generators/templates/config/initializers
137
+ rails_generators/templates/config/initializers/jdbc.rb
138
+ rails_generators/templates/lib/tasks
139
+ rails_generators/templates/lib/tasks/jdbc.rake