activerecord-jdbc-adapter 1.2.9.1 → 1.3.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. data/.travis.yml +3 -0
  2. data/Appraisals +12 -4
  3. data/Gemfile +3 -3
  4. data/Gemfile.lock +19 -19
  5. data/History.txt +90 -16
  6. data/LICENSE.txt +2 -1
  7. data/README.md +14 -1
  8. data/activerecord-jdbc-adapter.gemspec +2 -2
  9. data/gemfiles/rails23.gemfile +5 -5
  10. data/gemfiles/rails23.gemfile.lock +27 -27
  11. data/gemfiles/rails30.gemfile +3 -3
  12. data/gemfiles/rails30.gemfile.lock +8 -8
  13. data/gemfiles/rails31.gemfile +4 -4
  14. data/gemfiles/rails31.gemfile.lock +18 -18
  15. data/gemfiles/rails32.gemfile +4 -4
  16. data/gemfiles/rails32.gemfile.lock +17 -17
  17. data/gemfiles/rails40.gemfile +17 -0
  18. data/gemfiles/rails40.gemfile.lock +126 -0
  19. data/lib/activerecord-jdbc-adapter.rb +0 -7
  20. data/lib/arjdbc.rb +6 -5
  21. data/lib/arjdbc/db2.rb +1 -1
  22. data/lib/arjdbc/db2/adapter.rb +52 -29
  23. data/lib/arjdbc/db2/connection_methods.rb +13 -14
  24. data/lib/arjdbc/derby.rb +1 -1
  25. data/lib/arjdbc/derby/adapter.rb +29 -9
  26. data/lib/arjdbc/derby/connection_methods.rb +17 -20
  27. data/lib/arjdbc/firebird.rb +1 -1
  28. data/lib/arjdbc/h2.rb +2 -2
  29. data/lib/arjdbc/h2/adapter.rb +1 -1
  30. data/lib/arjdbc/h2/connection_methods.rb +12 -16
  31. data/lib/arjdbc/hsqldb.rb +1 -1
  32. data/lib/arjdbc/hsqldb/connection_methods.rb +13 -16
  33. data/lib/arjdbc/informix.rb +1 -1
  34. data/lib/arjdbc/informix/connection_methods.rb +8 -10
  35. data/lib/arjdbc/jdbc.rb +1 -1
  36. data/lib/arjdbc/jdbc/adapter.rb +125 -53
  37. data/lib/arjdbc/jdbc/adapter_java.jar +0 -0
  38. data/lib/arjdbc/jdbc/base_ext.rb +34 -9
  39. data/lib/arjdbc/jdbc/column.rb +15 -2
  40. data/lib/arjdbc/jdbc/connection.rb +0 -2
  41. data/lib/arjdbc/jdbc/connection_methods.rb +10 -3
  42. data/lib/arjdbc/jdbc/driver.rb +2 -2
  43. data/lib/arjdbc/jdbc/extension.rb +35 -21
  44. data/lib/arjdbc/jdbc/java.rb +0 -2
  45. data/lib/arjdbc/jdbc/missing_functionality_helper.rb +35 -25
  46. data/lib/arjdbc/jdbc/railtie.rb +2 -9
  47. data/lib/arjdbc/mimer.rb +1 -1
  48. data/lib/arjdbc/mssql.rb +2 -2
  49. data/lib/arjdbc/mssql/adapter.rb +271 -92
  50. data/lib/arjdbc/mssql/connection_methods.rb +30 -32
  51. data/lib/arjdbc/mssql/explain_support.rb +107 -0
  52. data/lib/arjdbc/mssql/limit_helpers.rb +48 -18
  53. data/lib/arjdbc/mysql.rb +1 -1
  54. data/lib/arjdbc/mysql/adapter.rb +63 -14
  55. data/lib/arjdbc/mysql/connection_methods.rb +22 -24
  56. data/lib/arjdbc/mysql/explain_support.rb +2 -5
  57. data/lib/arjdbc/oracle.rb +1 -1
  58. data/lib/arjdbc/oracle/adapter.rb +78 -38
  59. data/lib/arjdbc/oracle/connection_methods.rb +9 -10
  60. data/lib/arjdbc/postgresql.rb +1 -1
  61. data/lib/arjdbc/postgresql/adapter.rb +964 -380
  62. data/lib/arjdbc/postgresql/column_cast.rb +136 -0
  63. data/lib/arjdbc/postgresql/connection_methods.rb +19 -21
  64. data/lib/arjdbc/postgresql/explain_support.rb +3 -6
  65. data/lib/arjdbc/railtie.rb +9 -0
  66. data/lib/arjdbc/sqlite3.rb +1 -1
  67. data/lib/arjdbc/sqlite3/adapter.rb +73 -26
  68. data/lib/arjdbc/sqlite3/connection_methods.rb +27 -28
  69. data/lib/arjdbc/sqlite3/explain_support.rb +2 -5
  70. data/lib/arjdbc/sybase.rb +1 -1
  71. data/lib/arjdbc/version.rb +5 -4
  72. data/pom.xml +8 -0
  73. data/rakelib/02-test.rake +57 -51
  74. data/rakelib/compile.rake +17 -5
  75. data/rakelib/rails.rake +42 -31
  76. data/src/java/arjdbc/db2/DB2RubyJdbcConnection.java +4 -3
  77. data/src/java/arjdbc/derby/DerbyModule.java +98 -85
  78. data/src/java/arjdbc/derby/DerbyRubyJdbcConnection.java +70 -0
  79. data/src/java/arjdbc/h2/H2RubyJdbcConnection.java +0 -4
  80. data/src/java/arjdbc/jdbc/AdapterJavaService.java +26 -15
  81. data/src/java/arjdbc/jdbc/Callable.java +44 -0
  82. data/src/java/arjdbc/jdbc/JdbcConnectionFactory.java +10 -2
  83. data/src/java/arjdbc/jdbc/RubyJdbcConnection.java +1675 -834
  84. data/src/java/arjdbc/jdbc/SQLBlock.java +9 -3
  85. data/src/java/arjdbc/mssql/MSSQLRubyJdbcConnection.java +73 -36
  86. data/src/java/arjdbc/mysql/MySQLModule.java +11 -10
  87. data/src/java/arjdbc/mysql/MySQLRubyJdbcConnection.java +86 -80
  88. data/src/java/arjdbc/oracle/OracleRubyJdbcConnection.java +27 -7
  89. data/src/java/arjdbc/postgresql/PostgreSQLRubyJdbcConnection.java +214 -0
  90. data/src/java/arjdbc/postgresql/PostgresqlRubyJdbcConnection.java +25 -67
  91. data/src/java/arjdbc/sqlite3/SQLite3RubyJdbcConnection.java +52 -49
  92. data/src/java/arjdbc/util/QuotingUtils.java +6 -6
  93. data/test/abstract_db_create.rb +11 -11
  94. data/test/activerecord/connection_adapters/type_conversion_test.rb +18 -12
  95. data/test/db/db2.rb +1 -1
  96. data/test/{db2_binary_test.rb → db/db2/binary_test.rb} +0 -0
  97. data/test/db/db2/has_many_through_test.rb +6 -0
  98. data/test/{db2_reset_column_information_test.rb → db/db2/reset_column_information_test.rb} +1 -2
  99. data/test/{db2_serialize_test.rb → db/db2/serialize_test.rb} +0 -0
  100. data/test/{db2_simple_test.rb → db/db2/simple_test.rb} +1 -8
  101. data/test/db/db2/test_helper.rb +6 -0
  102. data/test/{db2_test.rb → db/db2/unit_test.rb} +1 -1
  103. data/test/db/derby.rb +1 -1
  104. data/test/{derby_binary_test.rb → db/derby/binary_test.rb} +0 -0
  105. data/test/{derby_migration_test.rb → db/derby/migration_test.rb} +0 -0
  106. data/test/{derby_reset_column_information_test.rb → db/derby/reset_column_information_test.rb} +0 -0
  107. data/test/{derby_row_locking_test.rb → db/derby/row_locking_test.rb} +1 -4
  108. data/test/db/derby/schema_dump_test.rb +5 -0
  109. data/test/{derby_serialize_test.rb → db/derby/serialize_test.rb} +0 -0
  110. data/test/{derby_simple_test.rb → db/derby/simple_test.rb} +23 -38
  111. data/test/db/derby/test_helper.rb +6 -0
  112. data/test/db/derby/unit_test.rb +32 -0
  113. data/test/db/derby/xml_column_test.rb +17 -0
  114. data/test/db/h2.rb +1 -1
  115. data/test/{h2_binary_test.rb → db/h2/binary_test.rb} +0 -0
  116. data/test/{h2_change_column_test.rb → db/h2/change_column_test.rb} +1 -0
  117. data/test/{h2_schema_dump_test.rb → db/h2/schema_dump_test.rb} +0 -0
  118. data/test/{h2_serialize_test.rb → db/h2/serialize_test.rb} +0 -0
  119. data/test/{h2_simple_test.rb → db/h2/simple_test.rb} +3 -1
  120. data/test/db/hsqldb.rb +1 -1
  121. data/test/{hsqldb_binary_test.rb → db/hsqldb/binary_test.rb} +0 -0
  122. data/test/{hsqldb_schema_dump_test.rb → db/hsqldb/schema_dump_test.rb} +0 -0
  123. data/test/{hsqldb_serialize_test.rb → db/hsqldb/serialize_test.rb} +0 -0
  124. data/test/{hsqldb_simple_test.rb → db/hsqldb/simple_test.rb} +3 -1
  125. data/test/db/informix.rb +1 -1
  126. data/test/db/jdbc.rb +3 -2
  127. data/test/db/jdbc_derby.rb +1 -1
  128. data/test/db/jdbc_h2.rb +1 -1
  129. data/test/db/jdbc_mysql.rb +1 -1
  130. data/test/db/jdbc_postgres.rb +1 -1
  131. data/test/db/jndi_config.rb +1 -2
  132. data/test/db/jndi_pooled_config.rb +2 -3
  133. data/test/db/mssql.rb +2 -2
  134. data/test/{mssql_binary_test.rb → db/mssql/binary_test.rb} +0 -0
  135. data/test/{mssql_db_create_test.rb → db/mssql/db_create_test.rb} +1 -1
  136. data/test/db/mssql/exec_proc_test.rb +46 -0
  137. data/test/{mssql_identity_insert_test.rb → db/mssql/identity_insert_test.rb} +0 -0
  138. data/test/db/mssql/ignore_system_views_test.rb +40 -0
  139. data/test/{mssql_limit_offset_test.rb → db/mssql/limit_offset_test.rb} +10 -1
  140. data/test/{mssql_multibyte_test.rb → db/mssql/multibyte_test.rb} +0 -0
  141. data/test/db/mssql/multiple_connections_test.rb +71 -0
  142. data/test/{mssql_reset_column_information_test.rb → db/mssql/reset_column_information_test.rb} +0 -0
  143. data/test/{mssql_row_locking_test.rb → db/mssql/row_locking_test.rb} +0 -0
  144. data/test/{mssql_serialize_test.rb → db/mssql/serialize_test.rb} +1 -1
  145. data/test/db/mssql/simple_test.rb +140 -0
  146. data/test/db/mssql/transaction_test.rb +6 -0
  147. data/test/db/mssql/types_test.rb +205 -0
  148. data/test/{mssql_test.rb → db/mssql/unit_test.rb} +2 -2
  149. data/test/db/mysql.rb +1 -2
  150. data/test/db/mysql/_rails_test_mysql.32.out +6768 -0
  151. data/test/{mysql_binary_test.rb → db/mysql/binary_test.rb} +0 -0
  152. data/test/db/mysql/connection_test.rb +51 -0
  153. data/test/{mysql_db_create_test.rb → db/mysql/db_create_test.rb} +0 -0
  154. data/test/{mysql_index_length_test.rb → db/mysql/index_length_test.rb} +0 -0
  155. data/test/{mysql_multibyte_test.rb → db/mysql/multibyte_test.rb} +0 -0
  156. data/test/{mysql_nonstandard_primary_key_test.rb → db/mysql/nonstandard_primary_key_test.rb} +0 -0
  157. data/test/{mysql_reset_column_information_test.rb → db/mysql/reset_column_information_test.rb} +0 -0
  158. data/test/{mysql_schema_dump_test.rb → db/mysql/schema_dump_test.rb} +9 -1
  159. data/test/{mysql_serialize_test.rb → db/mysql/serialize_test.rb} +0 -0
  160. data/test/{mysql_simple_test.rb → db/mysql/simple_test.rb} +16 -8
  161. data/test/db/mysql/transaction_test.rb +6 -0
  162. data/test/db/mysql/types_test.rb +30 -0
  163. data/test/{mysql_test.rb → db/mysql/unit_test.rb} +1 -1
  164. data/test/db/mysql_config.rb +1 -1
  165. data/test/db/oracle.rb +1 -1
  166. data/test/{oracle_binary_test.rb → db/oracle/binary_test.rb} +0 -0
  167. data/test/{oracle_limit_test.rb → db/oracle/limit_test.rb} +0 -0
  168. data/test/db/oracle/multibyte_test.rb +22 -0
  169. data/test/{oracle_reset_column_information_test.rb → db/oracle/reset_column_information_test.rb} +0 -0
  170. data/test/{oracle_serialize_test.rb → db/oracle/serialize_test.rb} +0 -0
  171. data/test/{oracle_simple_test.rb → db/oracle/simple_test.rb} +14 -19
  172. data/test/{oracle_specific_test.rb → db/oracle/specific_test.rb} +62 -16
  173. data/test/db/oracle/transaction_test.rb +31 -0
  174. data/test/db/oracle/unit_test.rb +31 -0
  175. data/test/db/postgres.rb +1 -1
  176. data/test/db/postgres/_rails_test_postgres.32.out +6777 -0
  177. data/test/db/postgres/a_custom_primary_key_test.rb +50 -0
  178. data/test/db/postgres/array_type_test.rb +101 -0
  179. data/test/{postgres_binary_test.rb → db/postgres/binary_test.rb} +0 -0
  180. data/test/db/postgres/connection_test.rb +55 -0
  181. data/test/db/postgres/data_types_test.rb +703 -0
  182. data/test/{postgres_db_create_test.rb → db/postgres/db_create_test.rb} +1 -1
  183. data/test/{postgres_drop_db_test.rb → db/postgres/db_drop_test.rb} +2 -0
  184. data/test/db/postgres/hstore_test.rb +200 -0
  185. data/test/db/postgres/information_schema_leak_test.rb +30 -0
  186. data/test/db/postgres/json_test.rb +86 -0
  187. data/test/db/postgres/ltree_test.rb +50 -0
  188. data/test/{postgres_mixed_case_test.rb → db/postgres/mixed_case_test.rb} +0 -0
  189. data/test/db/postgres/native_types_test.rb +128 -0
  190. data/test/{postgres_reserved_test.rb → db/postgres/reserved_test.rb} +0 -0
  191. data/test/{postgres_reset_column_information_test.rb → db/postgres/reset_column_information_test.rb} +0 -0
  192. data/test/{postgres_row_locking_test.rb → db/postgres/row_locking_test.rb} +0 -0
  193. data/test/{postgres_schema_dump_test.rb → db/postgres/schema_dump_test.rb} +4 -4
  194. data/test/db/postgres/schema_test.rb +113 -0
  195. data/test/{postgres_simple_test.rb → db/postgres/simple_test.rb} +48 -8
  196. data/test/{postgres_table_alias_length_test.rb → db/postgres/table_alias_length_test.rb} +2 -1
  197. data/test/db/postgres/transaction_test.rb +6 -0
  198. data/test/{postgres_test.rb → db/postgres/unit_test.rb} +3 -3
  199. data/test/db/sqlite3.rb +1 -1
  200. data/test/db/sqlite3/_rails_test_sqlite3.32.out +6502 -0
  201. data/test/db/sqlite3/has_many_though_test.rb +6 -0
  202. data/test/{sqlite3_reset_column_information_test.rb → db/sqlite3/reset_column_information_test.rb} +0 -0
  203. data/test/{sqlite3_schema_dump_test.rb → db/sqlite3/schema_dump_test.rb} +0 -0
  204. data/test/{sqlite3_serialize_test.rb → db/sqlite3/serialize_test.rb} +0 -0
  205. data/test/{sqlite3_simple_test.rb → db/sqlite3/simple_test.rb} +63 -63
  206. data/test/db/sqlite3/transaction_test.rb +32 -0
  207. data/test/{sqlite3_type_conversion_test.rb → db/sqlite3/type_conversion_test.rb} +0 -0
  208. data/test/has_many_through.rb +29 -64
  209. data/test/jdbc/oracle.rb +11 -0
  210. data/test/jndi_test.rb +16 -4
  211. data/test/models/auto_id.rb +1 -1
  212. data/test/models/rights_and_roles.rb +57 -0
  213. data/test/row_locking.rb +3 -0
  214. data/test/schema_dump.rb +24 -10
  215. data/test/simple.rb +359 -104
  216. data/test/test_helper.rb +4 -2
  217. data/test/transaction.rb +109 -0
  218. metadata +119 -86
  219. data/lib/arjdbc/jdbc/compatibility.rb +0 -51
  220. data/lib/arjdbc/jdbc/core_ext.rb +0 -24
  221. data/lib/arjdbc/jdbc/discover.rb +0 -18
  222. data/test/derby_schema_dump_test.rb +0 -9
  223. data/test/mssql_ignore_system_views_test.rb +0 -30
  224. data/test/mssql_legacy_types_test.rb +0 -58
  225. data/test/mssql_null_test.rb +0 -14
  226. data/test/mssql_simple_test.rb +0 -51
  227. data/test/postgres_information_schema_leak_test.rb +0 -28
  228. data/test/postgres_native_type_mapping_test.rb +0 -93
  229. data/test/postgres_nonseq_pkey_test.rb +0 -38
  230. data/test/postgres_schema_search_path_test.rb +0 -48
  231. data/test/postgres_type_conversion_test.rb +0 -33
data/test/test_helper.rb CHANGED
@@ -37,6 +37,8 @@ end
37
37
  # assert_queries and SQLCounter taken from rails active_record tests
38
38
  class Test::Unit::TestCase
39
39
 
40
+ alias skip omit
41
+
40
42
  def self.ar_version(version)
41
43
  match = version.match(/(\d+)\.(\d+)(?:\.(\d+))?/)
42
44
  ActiveRecord::VERSION::MAJOR > match[1].to_i ||
@@ -134,7 +136,7 @@ class Test::Unit::TestCase
134
136
  #a_usec = ( a_utc.usec / 1000 ) * 1000
135
137
  #assert_equal e_usec, a_usec, "<#{expected}> but was <#{actual}> (differ at :usec / 1000)"
136
138
  end
137
-
139
+
138
140
  def assert_date_not_equal expected, actual
139
141
  actual = actual_in_expected_time_zone(expected, actual)
140
142
  actual = actual.to_date if actual.is_a?(Time)
@@ -154,7 +156,7 @@ class Test::Unit::TestCase
154
156
  if date_equal?(expected, actual) && time_equal?(expected, actual)
155
157
  assert false, "<#{expected}> to not (datetime) equal to <#{actual}> but did"
156
158
  end
157
- end
159
+ end
158
160
 
159
161
  private
160
162
 
@@ -0,0 +1,109 @@
1
+ require 'test_helper'
2
+ require 'simple' # due MigrationSetup
3
+
4
+ module TransactionTestMethods
5
+ include MigrationSetup
6
+
7
+ def setup!
8
+ CreateEntries.up
9
+ CreateUsers.up
10
+ end
11
+
12
+ def teardown!
13
+ CreateUsers.down
14
+ CreateEntries.down
15
+ end
16
+
17
+ class Entry2 < ActiveRecord::Base; self.table_name = 'entries' ; end
18
+
19
+ def setup
20
+ super
21
+ Entry.delete_all
22
+ config = ActiveRecord::Base.connection.config
23
+ Entry2.establish_connection config
24
+ end
25
+
26
+ def test_supports_transaction_isolation
27
+ unless ActiveRecord::Base.connection.supports_transaction_isolation?
28
+ omit("transaction isolation not supported")
29
+ end
30
+ assert ActiveRecord::Base.connection.supports_transaction_isolation?(:read_uncommitted)
31
+ assert ActiveRecord::Base.connection.supports_transaction_isolation?(:read_committed)
32
+ assert ActiveRecord::Base.connection.supports_transaction_isolation?(:repeatable_read)
33
+ assert ActiveRecord::Base.connection.supports_transaction_isolation?(:serializable)
34
+ end
35
+
36
+ def test_transaction_isolation_read_uncommitted
37
+ # It is impossible to properly test read uncommitted. The SQL standard only
38
+ # specifies what must not happen at a certain level, not what must happen. At
39
+ # the read uncommitted level, there is nothing that must not happen.
40
+ # test "read uncommitted" do
41
+ Entry.transaction(:isolation => :read_uncommitted) do
42
+ assert_equal 0, Entry.count
43
+ Entry2.create
44
+ assert_equal 1, Entry.count
45
+ end
46
+ end if Test::Unit::TestCase.ar_version('4.0')
47
+
48
+ def test_transaction_isolation_read_committed
49
+ unless ActiveRecord::Base.connection.supports_transaction_isolation?
50
+ omit("transaction isolation not supported")
51
+ end
52
+
53
+ # We are testing that a dirty read does not happen
54
+ # test "read committed" do
55
+ Entry.transaction(:isolation => :read_committed) do
56
+ assert_equal 0, Entry.count
57
+
58
+ Entry2.transaction do
59
+ Entry2.create
60
+ assert_equal 0, Entry.count
61
+ end
62
+ end
63
+ assert_equal 1, Entry.count
64
+ end if Test::Unit::TestCase.ar_version('4.0')
65
+
66
+ def test_transaction_isolation_repeatable_read
67
+ unless ActiveRecord::Base.connection.supports_transaction_isolation?
68
+ omit("transaction isolation not supported")
69
+ end
70
+
71
+ # We are testing that a non-repeatable read does not happen
72
+ # test "repeatable read" do
73
+ entry = Entry.create(:title => '1234')
74
+
75
+ Entry.transaction(:isolation => :repeatable_read) do
76
+ entry.reload
77
+ Entry2.find(entry.id).update_attributes(:title => '567')
78
+
79
+ entry.reload
80
+ assert_equal '1234', entry.title
81
+ end
82
+ entry.reload
83
+ assert_equal '567', entry.title
84
+ end if Test::Unit::TestCase.ar_version('4.0')
85
+
86
+ # def test_transaction_isolation_serializable
87
+ # # We are testing that a non-serializable sequence of statements will raise
88
+ # # an error.
89
+ # # test "serializable" do
90
+ # #if Entry2.connection.adapter_name =~ /mysql/i
91
+ # # # Unfortunately it cannot be set to 0
92
+ # # Entry2.connection.execute "SET innodb_lock_wait_timeout = 1"
93
+ # #end
94
+ #
95
+ # assert_raise ActiveRecord::StatementInvalid do
96
+ # Entry.transaction(:isolation => :serializable) do
97
+ # Entry.create
98
+ #
99
+ # Entry2.transaction(:isolation => :serializable) do
100
+ # Entry2.create
101
+ # Entry2.count
102
+ # end
103
+ #
104
+ # Entry.count
105
+ # end
106
+ # end
107
+ # end if Test::Unit::TestCase.ar_version('4.0')
108
+
109
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-jdbc-adapter
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.2.9.1
4
+ prerelease: 6
5
+ version: 1.3.0.beta1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nick Sieger, Ola Bini and JRuby contributors
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-19 00:00:00.000000000 Z
12
+ date: 2013-04-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: |-
15
15
  activerecord-jdbc-adapter is a database adapter for Rails\' ActiveRecord
@@ -20,8 +20,8 @@ executables: []
20
20
  extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
- - .gitignore
24
- - .travis.yml
23
+ - ".gitignore"
24
+ - ".travis.yml"
25
25
  - Appraisals
26
26
  - Gemfile
27
27
  - Gemfile.lock
@@ -47,6 +47,8 @@ files:
47
47
  - gemfiles/rails31.gemfile.lock
48
48
  - gemfiles/rails32.gemfile
49
49
  - gemfiles/rails32.gemfile.lock
50
+ - gemfiles/rails40.gemfile
51
+ - gemfiles/rails40.gemfile.lock
50
52
  - lib/active_record/connection_adapters/db2_adapter.rb
51
53
  - lib/active_record/connection_adapters/derby_adapter.rb
52
54
  - lib/active_record/connection_adapters/h2_adapter.rb
@@ -100,11 +102,8 @@ files:
100
102
  - lib/arjdbc/jdbc/base_ext.rb
101
103
  - lib/arjdbc/jdbc/callbacks.rb
102
104
  - lib/arjdbc/jdbc/column.rb
103
- - lib/arjdbc/jdbc/compatibility.rb
104
105
  - lib/arjdbc/jdbc/connection.rb
105
106
  - lib/arjdbc/jdbc/connection_methods.rb
106
- - lib/arjdbc/jdbc/core_ext.rb
107
- - lib/arjdbc/jdbc/discover.rb
108
107
  - lib/arjdbc/jdbc/driver.rb
109
108
  - lib/arjdbc/jdbc/extension.rb
110
109
  - lib/arjdbc/jdbc/java.rb
@@ -120,6 +119,7 @@ files:
120
119
  - lib/arjdbc/mssql.rb
121
120
  - lib/arjdbc/mssql/adapter.rb
122
121
  - lib/arjdbc/mssql/connection_methods.rb
122
+ - lib/arjdbc/mssql/explain_support.rb
123
123
  - lib/arjdbc/mssql/limit_helpers.rb
124
124
  - lib/arjdbc/mssql/lock_helpers.rb
125
125
  - lib/arjdbc/mssql/tsql_methods.rb
@@ -133,8 +133,10 @@ files:
133
133
  - lib/arjdbc/oracle/connection_methods.rb
134
134
  - lib/arjdbc/postgresql.rb
135
135
  - lib/arjdbc/postgresql/adapter.rb
136
+ - lib/arjdbc/postgresql/column_cast.rb
136
137
  - lib/arjdbc/postgresql/connection_methods.rb
137
138
  - lib/arjdbc/postgresql/explain_support.rb
139
+ - lib/arjdbc/railtie.rb
138
140
  - lib/arjdbc/sqlite3.rb
139
141
  - lib/arjdbc/sqlite3/adapter.rb
140
142
  - lib/arjdbc/sqlite3/connection_methods.rb
@@ -161,10 +163,12 @@ files:
161
163
  - src/java/arjdbc/db2/DB2Module.java
162
164
  - src/java/arjdbc/db2/DB2RubyJdbcConnection.java
163
165
  - src/java/arjdbc/derby/DerbyModule.java
166
+ - src/java/arjdbc/derby/DerbyRubyJdbcConnection.java
164
167
  - src/java/arjdbc/h2/H2RubyJdbcConnection.java
165
168
  - src/java/arjdbc/hsqldb/HSQLDBModule.java
166
169
  - src/java/arjdbc/informix/InformixRubyJdbcConnection.java
167
170
  - src/java/arjdbc/jdbc/AdapterJavaService.java
171
+ - src/java/arjdbc/jdbc/Callable.java
168
172
  - src/java/arjdbc/jdbc/JdbcConnectionFactory.java
169
173
  - src/java/arjdbc/jdbc/RubyJdbcConnection.java
170
174
  - src/java/arjdbc/jdbc/SQLBlock.java
@@ -175,6 +179,7 @@ files:
175
179
  - src/java/arjdbc/mysql/MySQLRubyJdbcConnection.java
176
180
  - src/java/arjdbc/oracle/OracleModule.java
177
181
  - src/java/arjdbc/oracle/OracleRubyJdbcConnection.java
182
+ - src/java/arjdbc/postgresql/PostgreSQLRubyJdbcConnection.java
178
183
  - src/java/arjdbc/postgresql/PostgresqlRubyJdbcConnection.java
179
184
  - src/java/arjdbc/sqlite3/SQLite3Module.java
180
185
  - src/java/arjdbc/sqlite3/SQLite3RubyJdbcConnection.java
@@ -190,9 +195,35 @@ files:
190
195
  - test/assets/test.txt
191
196
  - test/binary.rb
192
197
  - test/db/db2.rb
198
+ - test/db/db2/binary_test.rb
199
+ - test/db/db2/has_many_through_test.rb
200
+ - test/db/db2/reset_column_information_test.rb
201
+ - test/db/db2/serialize_test.rb
202
+ - test/db/db2/simple_test.rb
203
+ - test/db/db2/test_helper.rb
204
+ - test/db/db2/unit_test.rb
193
205
  - test/db/derby.rb
206
+ - test/db/derby/binary_test.rb
207
+ - test/db/derby/migration_test.rb
208
+ - test/db/derby/reset_column_information_test.rb
209
+ - test/db/derby/row_locking_test.rb
210
+ - test/db/derby/schema_dump_test.rb
211
+ - test/db/derby/serialize_test.rb
212
+ - test/db/derby/simple_test.rb
213
+ - test/db/derby/test_helper.rb
214
+ - test/db/derby/unit_test.rb
215
+ - test/db/derby/xml_column_test.rb
194
216
  - test/db/h2.rb
217
+ - test/db/h2/binary_test.rb
218
+ - test/db/h2/change_column_test.rb
219
+ - test/db/h2/schema_dump_test.rb
220
+ - test/db/h2/serialize_test.rb
221
+ - test/db/h2/simple_test.rb
195
222
  - test/db/hsqldb.rb
223
+ - test/db/hsqldb/binary_test.rb
224
+ - test/db/hsqldb/schema_dump_test.rb
225
+ - test/db/hsqldb/serialize_test.rb
226
+ - test/db/hsqldb/simple_test.rb
196
227
  - test/db/informix.rb
197
228
  - test/db/jdbc.rb
198
229
  - test/db/jdbc_derby.rb
@@ -202,36 +233,84 @@ files:
202
233
  - test/db/jndi_config.rb
203
234
  - test/db/jndi_pooled_config.rb
204
235
  - test/db/mssql.rb
236
+ - test/db/mssql/binary_test.rb
237
+ - test/db/mssql/db_create_test.rb
238
+ - test/db/mssql/exec_proc_test.rb
239
+ - test/db/mssql/identity_insert_test.rb
240
+ - test/db/mssql/ignore_system_views_test.rb
241
+ - test/db/mssql/limit_offset_test.rb
242
+ - test/db/mssql/multibyte_test.rb
243
+ - test/db/mssql/multiple_connections_test.rb
244
+ - test/db/mssql/reset_column_information_test.rb
245
+ - test/db/mssql/row_locking_test.rb
246
+ - test/db/mssql/serialize_test.rb
247
+ - test/db/mssql/simple_test.rb
248
+ - test/db/mssql/transaction_test.rb
249
+ - test/db/mssql/types_test.rb
250
+ - test/db/mssql/unit_test.rb
205
251
  - test/db/mysql.rb
252
+ - test/db/mysql/_rails_test_mysql.32.out
253
+ - test/db/mysql/binary_test.rb
254
+ - test/db/mysql/connection_test.rb
255
+ - test/db/mysql/db_create_test.rb
256
+ - test/db/mysql/index_length_test.rb
257
+ - test/db/mysql/multibyte_test.rb
258
+ - test/db/mysql/nonstandard_primary_key_test.rb
259
+ - test/db/mysql/reset_column_information_test.rb
260
+ - test/db/mysql/schema_dump_test.rb
261
+ - test/db/mysql/serialize_test.rb
262
+ - test/db/mysql/simple_test.rb
263
+ - test/db/mysql/transaction_test.rb
264
+ - test/db/mysql/types_test.rb
265
+ - test/db/mysql/unit_test.rb
206
266
  - test/db/mysql_config.rb
207
267
  - test/db/oracle.rb
268
+ - test/db/oracle/binary_test.rb
269
+ - test/db/oracle/limit_test.rb
270
+ - test/db/oracle/multibyte_test.rb
271
+ - test/db/oracle/reset_column_information_test.rb
272
+ - test/db/oracle/serialize_test.rb
273
+ - test/db/oracle/simple_test.rb
274
+ - test/db/oracle/specific_test.rb
275
+ - test/db/oracle/transaction_test.rb
276
+ - test/db/oracle/unit_test.rb
208
277
  - test/db/postgres.rb
278
+ - test/db/postgres/_rails_test_postgres.32.out
279
+ - test/db/postgres/a_custom_primary_key_test.rb
280
+ - test/db/postgres/array_type_test.rb
281
+ - test/db/postgres/binary_test.rb
282
+ - test/db/postgres/connection_test.rb
283
+ - test/db/postgres/data_types_test.rb
284
+ - test/db/postgres/db_create_test.rb
285
+ - test/db/postgres/db_drop_test.rb
286
+ - test/db/postgres/hstore_test.rb
287
+ - test/db/postgres/information_schema_leak_test.rb
288
+ - test/db/postgres/json_test.rb
289
+ - test/db/postgres/ltree_test.rb
290
+ - test/db/postgres/mixed_case_test.rb
291
+ - test/db/postgres/native_types_test.rb
292
+ - test/db/postgres/reserved_test.rb
293
+ - test/db/postgres/reset_column_information_test.rb
294
+ - test/db/postgres/row_locking_test.rb
295
+ - test/db/postgres/schema_dump_test.rb
296
+ - test/db/postgres/schema_test.rb
297
+ - test/db/postgres/simple_test.rb
298
+ - test/db/postgres/table_alias_length_test.rb
299
+ - test/db/postgres/transaction_test.rb
300
+ - test/db/postgres/unit_test.rb
209
301
  - test/db/postgres_config.rb
210
302
  - test/db/sqlite3.rb
211
- - test/db2_binary_test.rb
212
- - test/db2_reset_column_information_test.rb
213
- - test/db2_serialize_test.rb
214
- - test/db2_simple_test.rb
215
- - test/db2_test.rb
216
- - test/derby_binary_test.rb
217
- - test/derby_migration_test.rb
218
- - test/derby_reset_column_information_test.rb
219
- - test/derby_row_locking_test.rb
220
- - test/derby_schema_dump_test.rb
221
- - test/derby_serialize_test.rb
222
- - test/derby_simple_test.rb
303
+ - test/db/sqlite3/_rails_test_sqlite3.32.out
304
+ - test/db/sqlite3/has_many_though_test.rb
305
+ - test/db/sqlite3/reset_column_information_test.rb
306
+ - test/db/sqlite3/schema_dump_test.rb
307
+ - test/db/sqlite3/serialize_test.rb
308
+ - test/db/sqlite3/simple_test.rb
309
+ - test/db/sqlite3/transaction_test.rb
310
+ - test/db/sqlite3/type_conversion_test.rb
223
311
  - test/generic_jdbc_connection_test.rb
224
- - test/h2_binary_test.rb
225
- - test/h2_change_column_test.rb
226
- - test/h2_schema_dump_test.rb
227
- - test/h2_serialize_test.rb
228
- - test/h2_simple_test.rb
229
312
  - test/has_many_through.rb
230
313
  - test/helper.rb
231
- - test/hsqldb_binary_test.rb
232
- - test/hsqldb_schema_dump_test.rb
233
- - test/hsqldb_serialize_test.rb
234
- - test/hsqldb_simple_test.rb
235
314
  - test/informix_simple_test.rb
236
315
  - test/jdbc/db2.rb
237
316
  - test/jdbc/oracle.rb
@@ -247,93 +326,47 @@ files:
247
326
  - test/models/entry.rb
248
327
  - test/models/mixed_case.rb
249
328
  - test/models/reserved_word.rb
329
+ - test/models/rights_and_roles.rb
250
330
  - test/models/string_id.rb
251
331
  - test/models/thing.rb
252
332
  - test/models/topic.rb
253
333
  - test/models/validates_uniqueness_of_string.rb
254
- - test/mssql_binary_test.rb
255
- - test/mssql_db_create_test.rb
256
- - test/mssql_identity_insert_test.rb
257
- - test/mssql_ignore_system_views_test.rb
258
- - test/mssql_legacy_types_test.rb
259
- - test/mssql_limit_offset_test.rb
260
- - test/mssql_multibyte_test.rb
261
- - test/mssql_null_test.rb
262
- - test/mssql_reset_column_information_test.rb
263
- - test/mssql_row_locking_test.rb
264
- - test/mssql_serialize_test.rb
265
- - test/mssql_simple_test.rb
266
- - test/mssql_test.rb
267
- - test/mysql_binary_test.rb
268
- - test/mysql_db_create_test.rb
269
- - test/mysql_index_length_test.rb
270
- - test/mysql_multibyte_test.rb
271
- - test/mysql_nonstandard_primary_key_test.rb
272
- - test/mysql_reset_column_information_test.rb
273
- - test/mysql_schema_dump_test.rb
274
- - test/mysql_serialize_test.rb
275
- - test/mysql_simple_test.rb
276
- - test/mysql_test.rb
277
- - test/oracle_binary_test.rb
278
- - test/oracle_limit_test.rb
279
- - test/oracle_reset_column_information_test.rb
280
- - test/oracle_serialize_test.rb
281
- - test/oracle_simple_test.rb
282
- - test/oracle_specific_test.rb
283
- - test/postgres_binary_test.rb
284
- - test/postgres_db_create_test.rb
285
- - test/postgres_drop_db_test.rb
286
- - test/postgres_information_schema_leak_test.rb
287
- - test/postgres_mixed_case_test.rb
288
- - test/postgres_native_type_mapping_test.rb
289
- - test/postgres_nonseq_pkey_test.rb
290
- - test/postgres_reserved_test.rb
291
- - test/postgres_reset_column_information_test.rb
292
- - test/postgres_row_locking_test.rb
293
- - test/postgres_schema_dump_test.rb
294
- - test/postgres_schema_search_path_test.rb
295
- - test/postgres_simple_test.rb
296
- - test/postgres_table_alias_length_test.rb
297
- - test/postgres_test.rb
298
- - test/postgres_type_conversion_test.rb
299
334
  - test/row_locking.rb
300
335
  - test/schema_dump.rb
301
336
  - test/serialize.rb
302
337
  - test/simple.rb
303
- - test/sqlite3_reset_column_information_test.rb
304
- - test/sqlite3_schema_dump_test.rb
305
- - test/sqlite3_serialize_test.rb
306
- - test/sqlite3_simple_test.rb
307
- - test/sqlite3_type_conversion_test.rb
308
338
  - test/sybase_jtds_simple_test.rb
309
339
  - test/sybase_reset_column_information_test.rb
310
340
  - test/test_helper.rb
341
+ - test/transaction.rb
311
342
  homepage: https://github.com/jruby/activerecord-jdbc-adapter
312
343
  licenses:
313
344
  - BSD
314
345
  post_install_message:
315
346
  rdoc_options:
316
- - --main
347
+ - "--main"
317
348
  - README.md
318
- - -SHN
319
- - -f
349
+ - "-SHN"
350
+ - "-f"
320
351
  - darkfish
321
352
  require_paths:
322
353
  - lib
323
354
  required_ruby_version: !ruby/object:Gem::Requirement
324
355
  requirements:
325
- - - '>='
356
+ - - ">="
326
357
  - !ruby/object:Gem::Version
327
358
  segments:
328
359
  - 0
329
360
  hash: 2
330
- version: '0'
361
+ version: !binary |-
362
+ MA==
331
363
  none: false
332
364
  required_rubygems_version: !ruby/object:Gem::Requirement
333
365
  requirements:
334
- - - '>='
366
+ - - !binary |-
367
+ Pg==
335
368
  - !ruby/object:Gem::Version
336
- version: '0'
369
+ version: 1.3.1
337
370
  none: false
338
371
  requirements: []
339
372
  rubyforge_project: jruby-extras