activerecord-jdbc-adapter 1.0.3-java → 50.1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +33 -0
  3. data/.travis.yml +79 -0
  4. data/.yardopts +4 -0
  5. data/CONTRIBUTING.md +50 -0
  6. data/Gemfile +91 -0
  7. data/History.md +1191 -0
  8. data/LICENSE.txt +22 -17
  9. data/README.md +169 -0
  10. data/RUNNING_TESTS.md +127 -0
  11. data/Rakefile +294 -5
  12. data/Rakefile.jdbc +20 -0
  13. data/activerecord-jdbc-adapter.gemspec +55 -0
  14. data/lib/active_record/connection_adapters/as400_adapter.rb +2 -0
  15. data/lib/active_record/connection_adapters/db2_adapter.rb +1 -0
  16. data/lib/active_record/connection_adapters/firebird_adapter.rb +1 -0
  17. data/lib/active_record/connection_adapters/mariadb_adapter.rb +1 -0
  18. data/lib/active_record/connection_adapters/sqlserver_adapter.rb +1 -0
  19. data/lib/activerecord-jdbc-adapter.rb +0 -5
  20. data/lib/arel/visitors/compat.rb +60 -0
  21. data/lib/arel/visitors/db2.rb +128 -6
  22. data/lib/arel/visitors/derby.rb +103 -10
  23. data/lib/arel/visitors/firebird.rb +79 -0
  24. data/lib/arel/visitors/h2.rb +25 -0
  25. data/lib/arel/visitors/hsqldb.rb +18 -10
  26. data/lib/arel/visitors/postgresql_jdbc.rb +6 -0
  27. data/lib/arel/visitors/sql_server.rb +225 -0
  28. data/lib/arel/visitors/sql_server/ng42.rb +293 -0
  29. data/lib/arjdbc.rb +11 -21
  30. data/lib/arjdbc/abstract/connection_management.rb +35 -0
  31. data/lib/arjdbc/abstract/core.rb +64 -0
  32. data/lib/arjdbc/abstract/database_statements.rb +64 -0
  33. data/lib/arjdbc/abstract/statement_cache.rb +58 -0
  34. data/lib/arjdbc/abstract/transaction_support.rb +86 -0
  35. data/lib/arjdbc/db2.rb +3 -1
  36. data/lib/arjdbc/db2/adapter.rb +630 -250
  37. data/lib/arjdbc/db2/as400.rb +130 -0
  38. data/lib/arjdbc/db2/column.rb +167 -0
  39. data/lib/arjdbc/db2/connection_methods.rb +44 -0
  40. data/lib/arjdbc/derby.rb +1 -5
  41. data/lib/arjdbc/derby/active_record_patch.rb +13 -0
  42. data/lib/arjdbc/derby/adapter.rb +409 -217
  43. data/lib/arjdbc/derby/connection_methods.rb +16 -14
  44. data/lib/arjdbc/derby/schema_creation.rb +15 -0
  45. data/lib/arjdbc/discover.rb +62 -50
  46. data/lib/arjdbc/firebird.rb +3 -1
  47. data/lib/arjdbc/firebird/adapter.rb +365 -62
  48. data/lib/arjdbc/firebird/connection_methods.rb +23 -0
  49. data/lib/arjdbc/h2.rb +2 -3
  50. data/lib/arjdbc/h2/adapter.rb +273 -6
  51. data/lib/arjdbc/h2/connection_methods.rb +23 -8
  52. data/lib/arjdbc/hsqldb.rb +2 -3
  53. data/lib/arjdbc/hsqldb/adapter.rb +204 -77
  54. data/lib/arjdbc/hsqldb/connection_methods.rb +24 -10
  55. data/lib/arjdbc/hsqldb/explain_support.rb +35 -0
  56. data/lib/arjdbc/hsqldb/schema_creation.rb +11 -0
  57. data/lib/arjdbc/informix.rb +4 -2
  58. data/lib/arjdbc/informix/adapter.rb +78 -54
  59. data/lib/arjdbc/informix/connection_methods.rb +8 -9
  60. data/lib/arjdbc/jdbc.rb +59 -2
  61. data/lib/arjdbc/jdbc/adapter.rb +356 -166
  62. data/lib/arjdbc/jdbc/adapter_java.jar +0 -0
  63. data/lib/arjdbc/jdbc/adapter_require.rb +46 -0
  64. data/lib/arjdbc/jdbc/base_ext.rb +15 -0
  65. data/lib/arjdbc/jdbc/callbacks.rb +27 -18
  66. data/lib/arjdbc/jdbc/column.rb +79 -20
  67. data/lib/arjdbc/jdbc/connection.rb +5 -119
  68. data/lib/arjdbc/jdbc/connection_methods.rb +32 -4
  69. data/lib/arjdbc/jdbc/error.rb +65 -0
  70. data/lib/arjdbc/jdbc/extension.rb +41 -29
  71. data/lib/arjdbc/jdbc/java.rb +5 -6
  72. data/lib/arjdbc/jdbc/jdbc.rake +3 -126
  73. data/lib/arjdbc/jdbc/railtie.rb +2 -9
  74. data/lib/arjdbc/jdbc/rake_tasks.rb +3 -10
  75. data/lib/arjdbc/jdbc/serialized_attributes_helper.rb +3 -0
  76. data/lib/arjdbc/jdbc/type_cast.rb +166 -0
  77. data/lib/arjdbc/jdbc/type_converter.rb +35 -19
  78. data/lib/arjdbc/mssql.rb +6 -3
  79. data/lib/arjdbc/mssql/adapter.rb +630 -298
  80. data/lib/arjdbc/mssql/column.rb +200 -0
  81. data/lib/arjdbc/mssql/connection_methods.rb +66 -17
  82. data/lib/arjdbc/mssql/explain_support.rb +99 -0
  83. data/lib/arjdbc/mssql/limit_helpers.rb +189 -50
  84. data/lib/arjdbc/mssql/lock_methods.rb +77 -0
  85. data/lib/arjdbc/mssql/types.rb +343 -0
  86. data/lib/arjdbc/mssql/utils.rb +82 -0
  87. data/lib/arjdbc/mysql.rb +2 -3
  88. data/lib/arjdbc/mysql/adapter.rb +86 -356
  89. data/lib/arjdbc/mysql/connection_methods.rb +159 -23
  90. data/lib/arjdbc/oracle/adapter.rb +714 -263
  91. data/lib/arjdbc/postgresql.rb +2 -3
  92. data/lib/arjdbc/postgresql/_bc_time_cast_patch.rb +24 -0
  93. data/lib/arjdbc/postgresql/adapter.rb +570 -400
  94. data/lib/arjdbc/postgresql/base/array_decoder.rb +26 -0
  95. data/lib/arjdbc/postgresql/base/array_encoder.rb +25 -0
  96. data/lib/arjdbc/postgresql/base/array_parser.rb +95 -0
  97. data/lib/arjdbc/postgresql/base/pgconn.rb +11 -0
  98. data/lib/arjdbc/postgresql/column.rb +51 -0
  99. data/lib/arjdbc/postgresql/connection_methods.rb +57 -18
  100. data/lib/arjdbc/postgresql/name.rb +24 -0
  101. data/lib/arjdbc/postgresql/oid_types.rb +192 -0
  102. data/lib/arjdbc/railtie.rb +11 -0
  103. data/lib/arjdbc/sqlite3.rb +2 -3
  104. data/lib/arjdbc/sqlite3/adapter.rb +518 -198
  105. data/lib/arjdbc/sqlite3/connection_methods.rb +49 -24
  106. data/lib/arjdbc/sybase.rb +2 -2
  107. data/lib/arjdbc/sybase/adapter.rb +7 -6
  108. data/lib/arjdbc/tasks.rb +13 -0
  109. data/lib/arjdbc/tasks/database_tasks.rb +52 -0
  110. data/lib/arjdbc/tasks/databases.rake +91 -0
  111. data/lib/arjdbc/tasks/databases3.rake +215 -0
  112. data/lib/arjdbc/tasks/databases4.rake +39 -0
  113. data/lib/arjdbc/tasks/db2_database_tasks.rb +104 -0
  114. data/lib/arjdbc/tasks/derby_database_tasks.rb +95 -0
  115. data/lib/arjdbc/tasks/h2_database_tasks.rb +31 -0
  116. data/lib/arjdbc/tasks/hsqldb_database_tasks.rb +70 -0
  117. data/lib/arjdbc/tasks/jdbc_database_tasks.rb +169 -0
  118. data/lib/arjdbc/tasks/mssql_database_tasks.rb +46 -0
  119. data/lib/arjdbc/util/quoted_cache.rb +60 -0
  120. data/lib/arjdbc/util/serialized_attributes.rb +98 -0
  121. data/lib/arjdbc/util/table_copier.rb +110 -0
  122. data/lib/arjdbc/version.rb +1 -6
  123. data/lib/generators/jdbc/USAGE +9 -0
  124. data/lib/generators/jdbc/jdbc_generator.rb +8 -0
  125. data/lib/jdbc_adapter.rb +1 -1
  126. data/lib/jdbc_adapter/rake_tasks.rb +3 -2
  127. data/lib/jdbc_adapter/version.rb +2 -1
  128. data/pom.xml +114 -0
  129. data/rails_generators/jdbc_generator.rb +1 -1
  130. data/rails_generators/templates/config/initializers/jdbc.rb +8 -5
  131. data/rails_generators/templates/lib/tasks/jdbc.rake +7 -4
  132. data/rakelib/01-tomcat.rake +51 -0
  133. data/rakelib/02-test.rake +132 -0
  134. data/rakelib/bundler_ext.rb +11 -0
  135. data/rakelib/compile.rake +67 -22
  136. data/rakelib/db.rake +61 -0
  137. data/rakelib/rails.rake +204 -29
  138. data/src/java/arjdbc/ArJdbcModule.java +286 -0
  139. data/src/java/arjdbc/db2/DB2Module.java +76 -0
  140. data/src/java/arjdbc/db2/DB2RubyJdbcConnection.java +126 -0
  141. data/src/java/arjdbc/derby/DerbyModule.java +99 -243
  142. data/src/java/arjdbc/derby/DerbyRubyJdbcConnection.java +152 -0
  143. data/src/java/arjdbc/firebird/FirebirdRubyJdbcConnection.java +174 -0
  144. data/src/java/arjdbc/{jdbc/JdbcConnectionFactory.java → h2/H2Module.java} +20 -6
  145. data/src/java/arjdbc/h2/H2RubyJdbcConnection.java +27 -12
  146. data/src/java/arjdbc/hsqldb/HSQLDBModule.java +73 -0
  147. data/src/java/arjdbc/informix/InformixRubyJdbcConnection.java +7 -6
  148. data/src/java/arjdbc/jdbc/AdapterJavaService.java +7 -29
  149. data/src/java/arjdbc/jdbc/Callable.java +44 -0
  150. data/src/java/arjdbc/jdbc/ConnectionFactory.java +132 -0
  151. data/src/java/arjdbc/jdbc/DataSourceConnectionFactory.java +157 -0
  152. data/src/java/arjdbc/jdbc/DriverConnectionFactory.java +63 -0
  153. data/src/java/arjdbc/jdbc/DriverWrapper.java +119 -0
  154. data/src/java/arjdbc/jdbc/JdbcResult.java +130 -0
  155. data/src/java/arjdbc/jdbc/RubyJdbcConnection.java +3622 -948
  156. data/src/java/arjdbc/mssql/MSSQLModule.java +90 -0
  157. data/src/java/arjdbc/mssql/MSSQLRubyJdbcConnection.java +181 -0
  158. data/src/java/arjdbc/mysql/MySQLModule.java +99 -81
  159. data/src/java/arjdbc/mysql/MySQLRubyJdbcConnection.java +294 -0
  160. data/src/java/arjdbc/oracle/OracleModule.java +80 -0
  161. data/src/java/arjdbc/oracle/OracleRubyJdbcConnection.java +387 -17
  162. data/src/java/arjdbc/postgresql/ByteaUtils.java +157 -0
  163. data/src/java/arjdbc/postgresql/PgResultSetMetaDataWrapper.java +23 -0
  164. data/src/java/arjdbc/postgresql/PostgreSQLModule.java +77 -0
  165. data/src/java/arjdbc/postgresql/PostgreSQLResult.java +184 -0
  166. data/src/java/arjdbc/postgresql/PostgreSQLRubyJdbcConnection.java +952 -0
  167. data/src/java/arjdbc/sqlite3/SQLite3Module.java +73 -0
  168. data/src/java/arjdbc/sqlite3/SQLite3RubyJdbcConnection.java +525 -0
  169. data/src/java/arjdbc/util/CallResultSet.java +826 -0
  170. data/src/java/arjdbc/util/DateTimeUtils.java +580 -0
  171. data/src/java/arjdbc/util/ObjectSupport.java +65 -0
  172. data/src/java/arjdbc/util/QuotingUtils.java +138 -0
  173. data/src/java/arjdbc/util/StringCache.java +63 -0
  174. data/src/java/arjdbc/util/StringHelper.java +159 -0
  175. metadata +245 -268
  176. data/History.txt +0 -369
  177. data/Manifest.txt +0 -180
  178. data/README.txt +0 -181
  179. data/lib/active_record/connection_adapters/oracle_adapter.rb +0 -1
  180. data/lib/arel/engines/sql/compilers/db2_compiler.rb +0 -9
  181. data/lib/arel/engines/sql/compilers/derby_compiler.rb +0 -6
  182. data/lib/arel/engines/sql/compilers/h2_compiler.rb +0 -6
  183. data/lib/arel/engines/sql/compilers/hsqldb_compiler.rb +0 -15
  184. data/lib/arel/engines/sql/compilers/jdbc_compiler.rb +0 -6
  185. data/lib/arel/engines/sql/compilers/mssql_compiler.rb +0 -46
  186. data/lib/arel/visitors/mssql.rb +0 -44
  187. data/lib/arjdbc/jdbc/compatibility.rb +0 -51
  188. data/lib/arjdbc/jdbc/core_ext.rb +0 -24
  189. data/lib/arjdbc/jdbc/discover.rb +0 -18
  190. data/lib/arjdbc/jdbc/driver.rb +0 -44
  191. data/lib/arjdbc/jdbc/missing_functionality_helper.rb +0 -87
  192. data/lib/arjdbc/jdbc/quoted_primary_key.rb +0 -28
  193. data/lib/arjdbc/jdbc/require_driver.rb +0 -16
  194. data/lib/arjdbc/mimer.rb +0 -2
  195. data/lib/arjdbc/mimer/adapter.rb +0 -142
  196. data/lib/arjdbc/mssql/tsql_helper.rb +0 -61
  197. data/lib/arjdbc/oracle.rb +0 -3
  198. data/lib/arjdbc/oracle/connection_methods.rb +0 -11
  199. data/lib/pg.rb +0 -4
  200. data/rakelib/package.rake +0 -92
  201. data/rakelib/test.rake +0 -81
  202. data/src/java/arjdbc/jdbc/SQLBlock.java +0 -48
  203. data/src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java +0 -127
  204. data/src/java/arjdbc/postgresql/PostgresqlRubyJdbcConnection.java +0 -57
  205. data/src/java/arjdbc/sqlite3/Sqlite3RubyJdbcConnection.java +0 -64
  206. data/test/abstract_db_create.rb +0 -117
  207. data/test/activerecord/connection_adapters/type_conversion_test.rb +0 -31
  208. data/test/activerecord/connections/native_jdbc_mysql/connection.rb +0 -25
  209. data/test/db/db2.rb +0 -11
  210. data/test/db/derby.rb +0 -12
  211. data/test/db/h2.rb +0 -11
  212. data/test/db/hsqldb.rb +0 -13
  213. data/test/db/informix.rb +0 -11
  214. data/test/db/jdbc.rb +0 -11
  215. data/test/db/jndi_config.rb +0 -40
  216. data/test/db/logger.rb +0 -3
  217. data/test/db/mssql.rb +0 -9
  218. data/test/db/mysql.rb +0 -10
  219. data/test/db/oracle.rb +0 -34
  220. data/test/db/postgres.rb +0 -9
  221. data/test/db/sqlite3.rb +0 -11
  222. data/test/db2_simple_test.rb +0 -66
  223. data/test/derby_migration_test.rb +0 -68
  224. data/test/derby_multibyte_test.rb +0 -12
  225. data/test/derby_simple_test.rb +0 -99
  226. data/test/generic_jdbc_connection_test.rb +0 -29
  227. data/test/h2_simple_test.rb +0 -41
  228. data/test/has_many_through.rb +0 -79
  229. data/test/helper.rb +0 -5
  230. data/test/hsqldb_simple_test.rb +0 -6
  231. data/test/informix_simple_test.rb +0 -48
  232. data/test/jdbc_common.rb +0 -25
  233. data/test/jndi_callbacks_test.rb +0 -40
  234. data/test/jndi_test.rb +0 -25
  235. data/test/manualTestDatabase.rb +0 -191
  236. data/test/models/add_not_null_column_to_table.rb +0 -12
  237. data/test/models/auto_id.rb +0 -18
  238. data/test/models/data_types.rb +0 -28
  239. data/test/models/entry.rb +0 -43
  240. data/test/models/mixed_case.rb +0 -25
  241. data/test/models/reserved_word.rb +0 -18
  242. data/test/models/string_id.rb +0 -18
  243. data/test/models/validates_uniqueness_of_string.rb +0 -19
  244. data/test/mssql_db_create_test.rb +0 -26
  245. data/test/mssql_identity_insert_test.rb +0 -19
  246. data/test/mssql_legacy_types_test.rb +0 -58
  247. data/test/mssql_limit_offset_test.rb +0 -136
  248. data/test/mssql_multibyte_test.rb +0 -18
  249. data/test/mssql_simple_test.rb +0 -55
  250. data/test/mysql_db_create_test.rb +0 -27
  251. data/test/mysql_info_test.rb +0 -113
  252. data/test/mysql_multibyte_test.rb +0 -10
  253. data/test/mysql_nonstandard_primary_key_test.rb +0 -42
  254. data/test/mysql_simple_test.rb +0 -49
  255. data/test/oracle_simple_test.rb +0 -18
  256. data/test/oracle_specific_test.rb +0 -83
  257. data/test/pick_rails_version.rb +0 -3
  258. data/test/postgres_db_create_test.rb +0 -32
  259. data/test/postgres_drop_db_test.rb +0 -16
  260. data/test/postgres_mixed_case_test.rb +0 -29
  261. data/test/postgres_nonseq_pkey_test.rb +0 -38
  262. data/test/postgres_reserved_test.rb +0 -22
  263. data/test/postgres_schema_search_path_test.rb +0 -44
  264. data/test/postgres_simple_test.rb +0 -51
  265. data/test/postgres_table_alias_length_test.rb +0 -15
  266. data/test/simple.rb +0 -546
  267. data/test/sqlite3_simple_test.rb +0 -233
  268. data/test/sybase_jtds_simple_test.rb +0 -28
@@ -1,369 +0,0 @@
1
- == 1.0.3 (11/29/10)
2
-
3
- - ACTIVERECORD_JDBC-143: Implement table_exists? fixing association
4
- table names with schema prefixes
5
- - Cleanup of column code for hsqldb (Denis Odorcic)
6
- - Rails 3.0.3 support - add Arel 2 visitors for all adapters
7
- - Fix MySQL date types to not have limits (Chris Lowder)
8
- - ACTIVERECORD_JDBC-141: Better schema support in H2
9
-
10
- == 1.0.2
11
-
12
- - ACTIVERECORD_JDBC-134: Fix conflicting adapter/column superclasses
13
- - ACTIVERECORD_JDBC-135: Fix regression on PG with boolean and :limit
14
- - Slew of Derby fixes courtesy of Denis Odorcic
15
-
16
- == 1.0.1
17
-
18
- - Fix db:test:purge issue affecting all adapters in 1.0.0 due to
19
- incorrect fix to JRUBY-5081 in 8b4b9c5
20
-
21
- == 1.0.0
22
-
23
- - Thanks to David Kellum, Dmitry Denisov, Dwayne Litzenberger, Gregor
24
- Schmidt, James Walker, John Duff, Joshua Suggs, Nicholas J Kreucher,
25
- Peter Donald, Geoff Longman, Uwe Kubosch, Youhei Kondou, Michael
26
- Pitman, Alex B, and Ryan Bell for their contributions to this
27
- release.
28
- - BIG set of DB2 updates (Thanks Nick Kreucher)
29
- - Deprecate jdbc_adapter/rake_tasks
30
- - (1.0.0.beta1)
31
- - Make database-specific extensions only load when necessary
32
- - Allow for discovery of database extensions outside of ar-jdbc
33
- proper. This should allow for custom database development to be
34
- developed and released without relying on AR-JDBC core.
35
- - Get AR's own tests running as close to 100% as possible. MySQL is
36
- currently 100%, SQLite3 is close.
37
- - JRUBY-4876: Bump up Derby's max index name length (Uwe Kubosch)
38
- - (1.0.0.beta2)
39
- - 98 commits since beta1
40
- - MSSQL updates from dlitz and realityforge
41
- - ACTIVERECORD_JDBC-131: Fix string slug issue for DB2 (Youhei Kondou)
42
- - JRUBY-1642: Don't use H2 INFORMATION_SCHEMA in table or column
43
- searches
44
- - JRUBY-4972: Attempt to deal with type(0)/:limit => 0 by not setting
45
- it808e213
46
- - JRUBY-5040: Fix issue with limits on timestamps in MySQL
47
- - JRUBY-3555: Allow setting Derby schema with 'schema:' option
48
- - ACTIVERECORD_JDBC-98: Make sure we actuall raise an error when
49
- inappropriately configured
50
- - ACTIVERECORD_JDBC-112: Add schema dumper tests for already-fixed
51
- MySQL type limits
52
- - ACTIVERECORD_JDBC-113: Fix PG float precision issue
53
- - ACTIVERECORD_JDBC-103: Fix decimal options for PG add/change column
54
- (Michael Pitman)
55
- - ACTIVERECORD_JDBC-127: Fix quoting of Date vs. Time(stamp) for
56
- Oracle (Lenny Marks)
57
- - Oracle: Sort out the NUMBER vs NUMBER(x) vs NUMBER(x,y) situation.
58
- - JRUBY-3051: Think we finally got the PG mixed-case patches applied.
59
- - JRUBY-5081: Consolidate code for dropping DB via postgres
60
- - ACTIVERECORD_JDBC-101: Add override of LONGVARCHAR => CLOB for
61
- informix
62
- - ACTIVERECORD_JDBC-107: Fix MySQL update_all issue on AR 2.3
63
- - ACTIVERECORD_JDBC-124: Filter out special _row_num column
64
- - ACTIVERECORD_JDBC-126: Fix sql 2000 limit/offset per Michael Pitman
65
- - ACTIVERECORD_JDBC-125: Add tweak to limit/offset code for HABTM
66
- queries (alex b)
67
- - ACTIVERECORD_JDBC-129: Don't have limits for text, binary or bit
68
- fields
69
- - (1.0.0 final)
70
- - Fix a few more SQLite3 AR tests
71
- - SQLite3: handle ":memory:" database
72
- - Release new SQLite3 driver 3.6.14.2 and new Derby driver 10.6.2.1
73
-
74
- == 0.9.7
75
-
76
- - JRUBY-4781: Fix multiple database connection collision issue w/
77
- Oracle
78
- - ACTIVERECORD_JDBC-115: Support SAVEPOINTS for MySQL and PG so that
79
- nested transactions can be faked
80
- - ACTIVERECORD_JDBC-116: Handle schema.table better for MySQL (thanks
81
- Dilshod Mukhtarov)
82
- - Fix 'Wrong # of arguments (2 for 1)' issue with #create_database for
83
- MySQL and AR 3.0
84
- - SQLServer 2000 support (thanks Jay McGaffigan)
85
-
86
- == 0.9.6
87
-
88
- - The Oracle release!
89
- - Oracle should be working much better with this release. Also updated
90
- to work with Rails 3.
91
- - Get all unit tests running cleanly on Oracle, fixing previous
92
- datetime/timezone issues.
93
- - ACTIVERECORD_JDBC-83: Add :sequence_start_value option to
94
- create_table, following oracle_enhanced adapter
95
- - ACTIVERECORD_JDBC-33: Don't double-quote table names in oracle
96
- - ACTIVERECORD_JDBC-17: Fix Oracle primary keys so that /^NUMBER$/ => :integer
97
- - Fix remaining blockers ACTIVERECORD_JDBC-82, JRUBY-3675,
98
- ACTIVERECORD_JDBC-22, ACTIVERECORD_JDBC-27, JRUBY-4759
99
-
100
- == 0.9.5
101
-
102
- - The MSSQL release, courtesy of Mike Williams and Lonely
103
- Planet.
104
- - JRuby + AR-JDBC is now seen as the hassle-free way of using Rails
105
- with SQLServer!
106
- - Many fixes for MSSQL, including ACTIVERECORD_JDBC-18,
107
- ACTIVERECORD_JDBC-41, ACTIVERECORD_JDBC-56, ACTIVERECORD_JDBC-94,
108
- ACTIVERECORD_JDBC-99, JRUBY-3805, JRUBY-3793, JRUBY-4221
109
- - All tests pass on Rails 3.0.0.beta3!
110
-
111
- == 0.9.4
112
-
113
- - ACTIVERECORD_JDBC-96: DB2 JdbcSpec cannot dump schema correctly
114
- (Youhei Kondou)
115
- - ACTIVERECORD_JDBC-97: Dont use Rails 3 deprecated constants (David
116
- Calavera)
117
- - Updates for rake db:schema:dump compatibility with Rails 2.3+ and
118
- MySQL (Joakim Kolsj�)
119
- - Rails 3.0.0.beta2 compatibility
120
- - Return of Derby, H2, Hsqldb support (requires AR >= 3.0.0.beta2)
121
-
122
- == 0.9.3
123
-
124
- - Rails 3 compatibility
125
- - PLEASE NOTE: ActiveRecord in Rails 3 has changed in a way that
126
- doesn't allow non-standard DBs (such as the Derby and H2 embedded
127
- DBs) to work. We're investigating the effort required to support
128
- these databases and hope to have something for a future release.
129
- - ACTIVERECORD_JDBC-91: Fix schema search path for PostgreSQL (Alex
130
- Kuebo)
131
- - ACTIVERECORD_JDBC-87: DB2 ID insert fix (Youhei Kondou)
132
- - ACTIVERECORD_JDBC-90: MSSQL fix for DATEs (jlangenauer)
133
- - ACTIVERECORD_JDBC-93: Fix string IDs for sqlite3, hsql/h2 (moser)
134
- - ACTIVERECORD_JDBC-86: Fix Derby queries starting with VALUES (Dwayne Litzenberger)
135
- - ACTIVERECORD_JDBC-95: Fix INSERT ... RETURNING for PostgreSQL
136
-
137
- == 0.9.2
138
-
139
- - The main, highly awaited fix for this release is a solution to the
140
- rake db:create/db:drop issue. The main change is a new 'jdbc' rails
141
- generator that should be run once to prepare a Rails application to
142
- use JDBC. The upside of this generator is that you no longer will
143
- need to alter database.yml for JDBC. See the README.txt for details.
144
- - Cleanup and reconnect if errors occur during begin/rollback
145
- (Jean-Dominique Morani, Christian Seiler)
146
- - ACTIVERECORD_JDBC-1: Add #drop_database method for oracle (does the
147
- same thing as recreate_database)
148
- - Sqlite3 and MSSQL fixes (Jean-Dominique Morani)
149
- - JRUBY-3512: Treat LONGVARCHAR as a CLOB for Mssql
150
- - JRUBY-3624: Upgrade Derby to 10.5.3.0 and add native limit/offset
151
- support (Christopher Saunders)
152
- - JRUBY-3616: Fix postgres non-sequence primary keys (David Kellum)
153
- - JRUBY-3669: Fix Oracle case with unconfigured schema (Dan Powell)
154
- - Fixed quote_column_name of jdbc_oracle to accept numbers (Marcelo
155
- Murad)
156
- - Fix for mysql tables with non standard primary keys such that the
157
- schema dump is correct (Nick Zalabak)
158
- - MSSQL fixes from Mike Luu:
159
- - add support for MSSQL uniqueidentifier datatype
160
- - always quote strings using unicode identifier for MSSQL
161
- - Changes primary_key generation to use always instead of by default
162
- for DB2 (Amos King)
163
- - Improves the SQLite adapter by fixing rename_column, change_column,
164
- change_column_default, changing remove_column, and adding
165
- remove_columns (Ryan Baumann)
166
- - More oracle love courtesy Ben Browning and Jens Himmelreich
167
- - JRUBY-3608: Add missing change_column_null method for postgres
168
- - JRUBY-3508: Fix quoting of integer and float columns
169
-
170
- == 0.9.1
171
-
172
- - We did a lot of internal cleanup this release in the hopes of
173
- simplifying the code and increasing performance.
174
- - Many SQLite updates (thanks Nils Christian Haugen)
175
- - JRUBY-2912: Fix MSSQL create/drop database (Joern Hartmann)
176
- - JRUBY-2767: Mistake in selecting identity with H2/HSQLDB
177
- - JRUBY-2884: jdbc_postgre.rb issue handling nil booleans (also a fix
178
- for hsqldb/h2) + tests
179
- - JRUBY-2995: activerecord jdbc derby adapter should quote columns
180
- called 'year'
181
- - JRUBY-2897: jdbc_postgre.rb needs microsecond support
182
- - JRUBY-3282: Upgrade to derby 10.4.2.0 to allow unique constraints
183
- with nullable columns
184
- - Update h2 from 1.0.63 to 1.1.107 in driver
185
- - JRUBY-3026: [Derby] Allow select/delete/update conditions with
186
- comparison to NULL using '='
187
- - JRUBY-2996: ...(actually this fixes only remaining issue of this bug
188
- which was symbols making into quote were exploding
189
- - JRUBY-2691: Update sybase driver to pass simple unit tests with jtds
190
- and verify it works with the new dialect keyword. patch by Leigh
191
- Kennedy
192
- - Make :float type work on h2,hsql [returned as string]. Make :float
193
- work on hsqldb (no paren value supported). Make REAL_TYPE just
194
- return RubyFloat
195
- - JRUBY-3222: Upgrade #type_to_sql to variation of AR 2.1.2 version
196
- - Add patch supplied in JRUBY-3489 (patch by Jean-Dominique Morani)
197
- - Various Oracle fixes by edsono
198
- - JRUBY-2688: Don't hard-code MySQL connection character encoding to
199
- utf8
200
-
201
- == 0.9
202
-
203
- - Now updated to support ActiveRecord 2.2. JNDI-based connections will
204
- automatically connect/disconnect for every AR connection pool
205
- checkout/checkin. For best results, set your pool: parameter >= the
206
- actual maximum size of the JNDI connection pool. (We'll look at how
207
- to eliminate the need to configure AR's pool in the future.)
208
- - NEW! Informix support courtesy of Javier Fernandez-Ivern.
209
- - Backport another Oracle CLOB issue, thanks Edson C�sar.
210
- - Rubyforge #22018: chomp final trailing semicolon for oracle
211
- - JRUBY-2848: Fix NPE error in set_native_database_types
212
- - Rework oracle lob saving callback to be Rails 2.1 friendly (assist
213
- from court3nay)
214
- - JRUBY-2715: Add create/drop database methods to Postgres (Peter Williams)
215
- - JRUBY-3183: Fix structure dump for Postgres (Ryan Bell)
216
- - JRUBY-3184: recreate_database for test database working for PG (Ryan Bell)
217
- - JRUBY-3186: disable referential integrity for PG (Ryan Bell)
218
- - Authoritative repository now hosted at
219
- git://github.com/nicksieger/activerecord-jdbc-adapter.git; rubyforge
220
- svn trunk cleaned out.
221
-
222
- == 0.8.2
223
-
224
- - Added an optional config key called :dialect. Using :dialect allows you to
225
- override the default SQL dialect for the driver class being used. There are
226
- a few cases for this:
227
- - Using using Sybase w/ the jTDS driver.
228
- - Using rebranded drivers.
229
- - It makes more sense to use :dialect, rather then :driver when using JNDI.
230
- - JRUBY-2619: Typo with :test config causing problems with dev database (Igor Minar)
231
- - 20524, JRUBY-2612: Since when did I think that there was a #true? method on Object?
232
-
233
- == 0.8.1
234
-
235
- - Now sporting a JDBC sqlite3 adapter! Thanks Joseph Athman.
236
- - Added support for InterSystems Cache database (Ryan Bell)
237
- - Fix for JRUBY-2256
238
- - JRUBY-1638, JRUBY-2404, JRUBY-2463: schema.table handling and Oracle NUMBER fixes (Darcy Schultz & Jesse Hu)
239
- - Add structure dump and other DDL-ish for DB2 (courtesy abedra and stuarthalloway)
240
- - Fix missing quote_table_name function under Rails 1.2.6 and earlier
241
- - Small tweaks to jdbc.rake to select proper config
242
- - JRUBY-2011: Fix MSSQL string un-quoting issue (Silvio Fonseca)
243
- - JRUBY-1977, 17427: Fix information_schema select issue with MSSQL (Matt Burke)
244
- - 20479: Improve get_table_name for MSSQL (Aslak Hellesøy)
245
- - 20243: numerics improvements for MSSQL (Aslak Hellesøy)
246
- - 20172: don't quote table names for MSSQL (Thor Marius Henrichsen)
247
- - 19729: check for primary key existence in postgres during insert (Martin Luder)
248
- - JRUBY-2297, 18846: retrying failing SQL statements is harmful when not autocommitting (Craig McMillan)
249
- - 10021: very preliminary sybase support. (Mark Atkinson) Not usable until collision w/ sqlserver driver is resolved.
250
- - JRUBY-2312, JRUBY-2319, JRUBY-2322: Oracle timestamping issues (Jesse Hu & Michael König)
251
- - JRUBY-2422: Fix MySQL referential integrity and rollback issues
252
- - JRUBY-2382: mysql string quoting fails with ArrayIndexOutofBoundsException
253
-
254
- == 0.8
255
-
256
- - NOTE: This release is only compatible with JRuby 1.1RC3 or later.
257
- - Because of recent API changes in trunk in preparation for JRuby 1.1, this release is not
258
- backward compatible with previous JRuby releases. Hence the version bump.
259
- - Internal: convert Java methods to be defined with annotations
260
- - Fix problem with reserved words coming back pre-quoted from #indexes in postgres
261
- - JRUBY-2205: Fix N^2 allocation of bytelists for mysql quoting (taw)
262
- - Attempt a fix for Rubyforge 18059
263
- - Upgrade derby to 10.3.2.1
264
- - Fix db:create etc. in the case where JDBC is loaded in Rails' preinitializer.rb
265
- - Fix db:drop to actually work
266
- - Fix for Rubyforge #11567 (Matt Williams)
267
-
268
- == 0.7.2
269
-
270
- - JRUBY-1905: add_column for derby, hsqldb, and postgresql (Stephen Bannasch)
271
- - Fix db:create for JDBC
272
- - Support Rails 2 with the old "require 'jdbc_adapter'" approach
273
- - JRUBY-1966: Instead of searching for just tables, search for views and tables.
274
- - JRUBY-1583: DB2 numeric quoting (Ryan Shillington)
275
- - JRUBY-1634: Oracle DATE type mapping (Daniel Wintschel)
276
- - JRUBY-1543: rename_column issue with more recent MySQL drivers (Oliver Schmelzle)
277
- - Rubyforge #15074: ConnectionAdapters::JdbcAdapter.indexes is missing name and
278
- schema_name parameters in the method signature (Igor Minar)
279
- - Rubyforge #13558: definition for the indexes method (T Meyarivan)
280
- - JRUBY-2051: handle schemaname and tablename more correctly for columns
281
- - JRUBY-2102: Postgres Adapter cannot handle datetime type (Rainer Hahnekamp)
282
- - JRUBY-2018: Oracle behind ActiveRecord-JDBC fails with "Invalid column index" (K Venkatasubramaniyan)
283
- - JRUBY-2012: jdbc_mysql structure dump fails for mysql views (Tyler Jennings)
284
-
285
- == 0.7.1
286
-
287
- - Add adapter and driver for H2 courtesy of Caleb Land
288
- - Fix "undefined method `last' for {}:Hash" error introduced with new Rake 0.8.1 (JRUBY-1859)
289
-
290
- == 0.7
291
-
292
- - PLEASE NOTE: This release is not compatible with JRuby releases earlier than
293
- 1.0.3 or 1.1b2. If you must use JRuby 1.0.2 or earlier, please install the
294
- 0.6 release.
295
- - Release coincides with JRuby 1.0.3 and JRuby 1.1b2 releases
296
- - Simultaneous support for JRuby trunk and 1.0 branch
297
- - Get rid of log_no_bench method, so we time SQL execution again.
298
- - Implement #select_rows
299
- - MySQL migration and quoting updates
300
-
301
- == 0.6
302
-
303
- - Gem is renamed to "activerecord-jdbc-adapter" to follow new conventions
304
- introduced in Rails 2.0 for third-party adapters. Rails 2.0 compatibility is
305
- introduced.
306
- - Add dependency on ActiveRecord >= 1.14 (from the Rails 1.1.x release)
307
- - New drivers (jdbc-XXX) and adapter (activerecord-jdbcXXX-adapter) gems
308
- available separately. See the README.txt file for details.
309
- - Plain "jdbc" driver is still available if you want to use the full
310
- driver/url way of specifying the driver.
311
- - More bugfixes to Oracle and SQLServer courtesy of Ola & ThoughtWorks
312
-
313
- == 0.5
314
-
315
- - Release coincides with JRuby 1.0.1 release
316
- - It is no longer necessary to specify :driver and :url configuration
317
- parameters for the mysql, postgresql, oracle, derby, hsqldb, and h2
318
- adapters. The previous configuration is still valid and compatible, but for
319
- new applications, this makes it possible to use the exact same database.yml
320
- configuration as Rails applications running under native Ruby.
321
- - JDBC drivers can now be dynamically loaded by Ruby code, without being on
322
- the classpath prior to launching JRuby. Simply use "require
323
- 'jdbc-driver.jar'" in JRuby code to add it to the runtime classpath.
324
- - Updates to HSQL, MS SQLServer, Postgres, Oracle and Derby adapters
325
-
326
- == 0.4
327
-
328
- - Release coincides with JRuby 1.0 release
329
- - Shoring up PostgreSQL (courtesy Dudley Flanders) and HSQL (courtesy Matthew
330
- Williams)
331
- - Fix timestamps on Oracle to use DATE (as everything else)
332
- - Derby fixes: Fix for open result set issue, better structure dump, quoting,
333
- column type changing
334
- - Sybase type recognition fix (courtesy Dean Mao)
335
-
336
- == 0.3.1
337
-
338
- - Derby critical fixes shortly after 0.3
339
-
340
- == 0.3
341
-
342
- - Release coincides with JRuby 1.0.0RC1 release
343
- - Improvements for Derby, Postgres, and Oracle, all of which are running
344
- > 95% of AR tests
345
-
346
- == 0.2.4
347
-
348
- - Release coincides with JRuby 0.9.9 release
349
- - JRuby 0.9.9 is required
350
- - MySQL close to 100% working
351
- - Derby improvements
352
- - DECIMAL/NUMERIC/FLOAT/REAL bugs fixed with type recognition for Oracle,
353
- Postgres, etc.
354
- - HSQLDB has regressed this release and may not be functioning; we'll get it
355
- fixed for the next one
356
-
357
- == 0.2.3
358
-
359
- - Release coincides (and compatible) with JRuby 0.9.8 release
360
- - 8 bugs fixed: see http://rubyurl.com/0Da
361
- - Improvements and compatibility fixes for Rails 1.2.x
362
-
363
- == 0.2.1, 0.2.2
364
-
365
- - Early releases, added better support for multiple databases
366
-
367
- == 0.0.1
368
-
369
- - Initial, very alpha release
@@ -1,180 +0,0 @@
1
- History.txt
2
- Manifest.txt
3
- README.txt
4
- Rakefile
5
- LICENSE.txt
6
- lib/activerecord-jdbc-adapter.rb
7
- lib/arjdbc.rb
8
- lib/jdbc_adapter.rb
9
- lib/pg.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/jndi_adapter.rb
16
- lib/active_record/connection_adapters/mssql_adapter.rb
17
- lib/active_record/connection_adapters/mysql2_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/arel/engines/sql/compilers/mssql_compiler.rb
28
- lib/arel/visitors/db2.rb
29
- lib/arel/visitors/derby.rb
30
- lib/arel/visitors/hsqldb.rb
31
- lib/arel/visitors/mssql.rb
32
- lib/arjdbc/db2.rb
33
- lib/arjdbc/derby.rb
34
- lib/arjdbc/discover.rb
35
- lib/arjdbc/firebird.rb
36
- lib/arjdbc/h2.rb
37
- lib/arjdbc/hsqldb.rb
38
- lib/arjdbc/informix.rb
39
- lib/arjdbc/jdbc.rb
40
- lib/arjdbc/mimer.rb
41
- lib/arjdbc/mssql.rb
42
- lib/arjdbc/mysql.rb
43
- lib/arjdbc/oracle.rb
44
- lib/arjdbc/postgresql.rb
45
- lib/arjdbc/sqlite3.rb
46
- lib/arjdbc/sybase.rb
47
- lib/arjdbc/version.rb
48
- lib/arjdbc/db2/adapter.rb
49
- lib/arjdbc/derby/adapter.rb
50
- lib/arjdbc/derby/connection_methods.rb
51
- lib/arjdbc/firebird/adapter.rb
52
- lib/arjdbc/h2/adapter.rb
53
- lib/arjdbc/h2/connection_methods.rb
54
- lib/arjdbc/hsqldb/adapter.rb
55
- lib/arjdbc/hsqldb/connection_methods.rb
56
- lib/arjdbc/informix/adapter.rb
57
- lib/arjdbc/informix/connection_methods.rb
58
- lib/arjdbc/jdbc/adapter.rb
59
- lib/arjdbc/jdbc/callbacks.rb
60
- lib/arjdbc/jdbc/column.rb
61
- lib/arjdbc/jdbc/compatibility.rb
62
- lib/arjdbc/jdbc/connection.rb
63
- lib/arjdbc/jdbc/connection_methods.rb
64
- lib/arjdbc/jdbc/core_ext.rb
65
- lib/arjdbc/jdbc/discover.rb
66
- lib/arjdbc/jdbc/driver.rb
67
- lib/arjdbc/jdbc/extension.rb
68
- lib/arjdbc/jdbc/java.rb
69
- lib/arjdbc/jdbc/missing_functionality_helper.rb
70
- lib/arjdbc/jdbc/quoted_primary_key.rb
71
- lib/arjdbc/jdbc/railtie.rb
72
- lib/arjdbc/jdbc/rake_tasks.rb
73
- lib/arjdbc/jdbc/require_driver.rb
74
- lib/arjdbc/jdbc/type_converter.rb
75
- lib/arjdbc/mimer/adapter.rb
76
- lib/arjdbc/mssql/adapter.rb
77
- lib/arjdbc/mssql/connection_methods.rb
78
- lib/arjdbc/mssql/limit_helpers.rb
79
- lib/arjdbc/mssql/tsql_helper.rb
80
- lib/arjdbc/mysql/adapter.rb
81
- lib/arjdbc/mysql/connection_methods.rb
82
- lib/arjdbc/oracle/adapter.rb
83
- lib/arjdbc/oracle/connection_methods.rb
84
- lib/arjdbc/postgresql/adapter.rb
85
- lib/arjdbc/postgresql/connection_methods.rb
86
- lib/arjdbc/sqlite3/adapter.rb
87
- lib/arjdbc/sqlite3/connection_methods.rb
88
- lib/arjdbc/sybase/adapter.rb
89
- lib/generators/jdbc/jdbc_generator.rb
90
- lib/jdbc_adapter/rake_tasks.rb
91
- lib/jdbc_adapter/version.rb
92
- lib/arjdbc/jdbc/adapter_java.jar
93
- test/abstract_db_create.rb
94
- test/db2_simple_test.rb
95
- test/derby_migration_test.rb
96
- test/derby_multibyte_test.rb
97
- test/derby_simple_test.rb
98
- test/generic_jdbc_connection_test.rb
99
- test/h2_simple_test.rb
100
- test/has_many_through.rb
101
- test/helper.rb
102
- test/hsqldb_simple_test.rb
103
- test/informix_simple_test.rb
104
- test/jdbc_common.rb
105
- test/jndi_callbacks_test.rb
106
- test/jndi_test.rb
107
- test/manualTestDatabase.rb
108
- test/mssql_db_create_test.rb
109
- test/mssql_identity_insert_test.rb
110
- test/mssql_legacy_types_test.rb
111
- test/mssql_limit_offset_test.rb
112
- test/mssql_multibyte_test.rb
113
- test/mssql_simple_test.rb
114
- test/mysql_db_create_test.rb
115
- test/mysql_info_test.rb
116
- test/mysql_multibyte_test.rb
117
- test/mysql_nonstandard_primary_key_test.rb
118
- test/mysql_simple_test.rb
119
- test/oracle_simple_test.rb
120
- test/oracle_specific_test.rb
121
- test/pick_rails_version.rb
122
- test/postgres_db_create_test.rb
123
- test/postgres_drop_db_test.rb
124
- test/postgres_mixed_case_test.rb
125
- test/postgres_nonseq_pkey_test.rb
126
- test/postgres_reserved_test.rb
127
- test/postgres_schema_search_path_test.rb
128
- test/postgres_simple_test.rb
129
- test/postgres_table_alias_length_test.rb
130
- test/simple.rb
131
- test/sqlite3_simple_test.rb
132
- test/sybase_jtds_simple_test.rb
133
- test/activerecord/connection_adapters/type_conversion_test.rb
134
- test/activerecord/connections/native_jdbc_mysql/connection.rb
135
- test/db/db2.rb
136
- test/db/derby.rb
137
- test/db/h2.rb
138
- test/db/hsqldb.rb
139
- test/db/informix.rb
140
- test/db/jdbc.rb
141
- test/db/jndi_config.rb
142
- test/db/logger.rb
143
- test/db/mssql.rb
144
- test/db/mysql.rb
145
- test/db/oracle.rb
146
- test/db/postgres.rb
147
- test/db/sqlite3.rb
148
- test/models/add_not_null_column_to_table.rb
149
- test/models/auto_id.rb
150
- test/models/data_types.rb
151
- test/models/entry.rb
152
- test/models/mixed_case.rb
153
- test/models/reserved_word.rb
154
- test/models/string_id.rb
155
- test/models/validates_uniqueness_of_string.rb
156
- lib/arjdbc/jdbc/jdbc.rake
157
- src/java/arjdbc/derby/DerbyModule.java
158
- src/java/arjdbc/h2/H2RubyJdbcConnection.java
159
- src/java/arjdbc/informix/InformixRubyJdbcConnection.java
160
- src/java/arjdbc/jdbc/AdapterJavaService.java
161
- src/java/arjdbc/jdbc/JdbcConnectionFactory.java
162
- src/java/arjdbc/jdbc/RubyJdbcConnection.java
163
- src/java/arjdbc/jdbc/SQLBlock.java
164
- src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java
165
- src/java/arjdbc/mysql/MySQLModule.java
166
- src/java/arjdbc/oracle/OracleRubyJdbcConnection.java
167
- src/java/arjdbc/postgresql/PostgresqlRubyJdbcConnection.java
168
- src/java/arjdbc/sqlite3/Sqlite3RubyJdbcConnection.java
169
- rakelib/compile.rake
170
- rakelib/package.rake
171
- rakelib/rails.rake
172
- rakelib/test.rake
173
- rails_generators/jdbc_generator.rb
174
- rails_generators/templates
175
- rails_generators/templates/config
176
- rails_generators/templates/lib
177
- rails_generators/templates/config/initializers
178
- rails_generators/templates/config/initializers/jdbc.rb
179
- rails_generators/templates/lib/tasks
180
- rails_generators/templates/lib/tasks/jdbc.rake