cmoran92-activerecord-jdbc-adapter 1.2.1

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