activerecord-jdbc-adapter 0.8 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +21 -0
- data/Manifest.txt +12 -0
- data/README.txt +1 -0
- data/Rakefile +19 -13
- data/lib/active_record/connection_adapters/cachedb_adapter.rb +1 -0
- data/lib/active_record/connection_adapters/jdbc_adapter.rb +22 -5
- data/lib/active_record/connection_adapters/jdbc_adapter_spec.rb +3 -0
- data/lib/active_record/connection_adapters/sqlite3_adapter.rb +13 -0
- data/lib/jdbc_adapter/jdbc.rake +32 -29
- data/lib/jdbc_adapter/jdbc_adapter_internal.jar +0 -0
- data/lib/jdbc_adapter/jdbc_cachedb.rb +33 -0
- data/lib/jdbc_adapter/jdbc_db2.rb +96 -7
- data/lib/jdbc_adapter/jdbc_derby.rb +35 -28
- data/lib/jdbc_adapter/jdbc_mssql.rb +62 -103
- data/lib/jdbc_adapter/jdbc_mysql.rb +34 -25
- data/lib/jdbc_adapter/jdbc_oracle.rb +7 -7
- data/lib/jdbc_adapter/jdbc_postgre.rb +1 -1
- data/lib/jdbc_adapter/jdbc_sqlite3.rb +188 -0
- data/lib/jdbc_adapter/jdbc_sybase.rb +39 -0
- data/lib/jdbc_adapter/tsql_helper.rb +59 -0
- data/lib/jdbc_adapter/version.rb +1 -1
- data/src/java/jdbc_adapter/JdbcAdapterInternalService.java +66 -40
- data/src/java/jdbc_adapter/JdbcMySQLSpec.java +2 -2
- data/test/cachedb_simple_test.rb +6 -0
- data/test/db/cachedb.rb +9 -0
- data/test/db/mssql.rb +9 -0
- data/test/db/oracle.rb +22 -2
- data/test/db/sqlite3.rb +11 -0
- data/test/db2_simple_test.rb +4 -0
- data/test/jdbc_common.rb +3 -1
- data/test/manualTestDatabase.rb +1 -5
- data/test/models/entry.rb +1 -1
- data/test/mssql_simple_test.rb +6 -0
- data/test/mysql_simple_test.rb +9 -0
- data/test/oracle_simple_test.rb +23 -0
- data/test/simple.rb +3 -2
- data/test/sqlite3_simple_test.rb +6 -0
- metadata +14 -2
data/test/simple.rb
CHANGED
@@ -11,6 +11,7 @@ module MigrationSetup
|
|
11
11
|
def teardown
|
12
12
|
CreateEntries.down
|
13
13
|
CreateAutoIds.down
|
14
|
+
ActiveRecord::Base.clear_active_connections!
|
14
15
|
end
|
15
16
|
end
|
16
17
|
|
@@ -21,7 +22,7 @@ module FixtureSetup
|
|
21
22
|
@title = "First post!"
|
22
23
|
@content = "Hello from JRuby on Rails!"
|
23
24
|
@new_title = "First post updated title"
|
24
|
-
@rating = 205
|
25
|
+
@rating = 205.76
|
25
26
|
Entry.create :title => @title, :content => @content, :rating => @rating
|
26
27
|
end
|
27
28
|
end
|
@@ -185,7 +186,7 @@ module MultibyteTestMethods
|
|
185
186
|
end
|
186
187
|
|
187
188
|
def test_select_multibyte_string
|
188
|
-
@java_con.createStatement().execute("insert into entries (title, content) values ('テスト', '本文')")
|
189
|
+
@java_con.createStatement().execute("insert into entries (id, title, content) values (1, 'テスト', '本文')")
|
189
190
|
entry = Entry.find(:first)
|
190
191
|
assert_equal "テスト", entry.title
|
191
192
|
assert_equal "本文", entry.content
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-jdbc-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sieger, Ola Bini and JRuby contributors
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-06-04 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -30,6 +30,7 @@ files:
|
|
30
30
|
- README.txt
|
31
31
|
- Rakefile
|
32
32
|
- LICENSE.txt
|
33
|
+
- lib/active_record/connection_adapters/cachedb_adapter.rb
|
33
34
|
- lib/active_record/connection_adapters/derby_adapter.rb
|
34
35
|
- lib/active_record/connection_adapters/h2_adapter.rb
|
35
36
|
- lib/active_record/connection_adapters/hsqldb_adapter.rb
|
@@ -39,6 +40,8 @@ files:
|
|
39
40
|
- lib/active_record/connection_adapters/mysql_adapter.rb
|
40
41
|
- lib/active_record/connection_adapters/oracle_adapter.rb
|
41
42
|
- lib/active_record/connection_adapters/postgresql_adapter.rb
|
43
|
+
- lib/active_record/connection_adapters/sqlite3_adapter.rb
|
44
|
+
- lib/jdbc_adapter/jdbc_cachedb.rb
|
42
45
|
- lib/jdbc_adapter/jdbc_db2.rb
|
43
46
|
- lib/jdbc_adapter/jdbc_derby.rb
|
44
47
|
- lib/jdbc_adapter/jdbc_firebird.rb
|
@@ -48,13 +51,18 @@ files:
|
|
48
51
|
- lib/jdbc_adapter/jdbc_mysql.rb
|
49
52
|
- lib/jdbc_adapter/jdbc_oracle.rb
|
50
53
|
- lib/jdbc_adapter/jdbc_postgre.rb
|
54
|
+
- lib/jdbc_adapter/jdbc_sqlite3.rb
|
55
|
+
- lib/jdbc_adapter/jdbc_sybase.rb
|
51
56
|
- lib/jdbc_adapter/missing_functionality_helper.rb
|
52
57
|
- lib/jdbc_adapter/rake_tasks.rb
|
58
|
+
- lib/jdbc_adapter/tsql_helper.rb
|
53
59
|
- lib/jdbc_adapter/version.rb
|
54
60
|
- lib/jdbc_adapter.rb
|
55
61
|
- lib/jdbc_adapter/jdbc_adapter_internal.jar
|
56
62
|
- test/activerecord/connection_adapters/type_conversion_test.rb
|
57
63
|
- test/activerecord/connections/native_jdbc_mysql/connection.rb
|
64
|
+
- test/cachedb_simple_test.rb
|
65
|
+
- test/db/cachedb.rb
|
58
66
|
- test/db/db2.rb
|
59
67
|
- test/db/derby.rb
|
60
68
|
- test/db/h2.rb
|
@@ -62,9 +70,11 @@ files:
|
|
62
70
|
- test/db/jdbc.rb
|
63
71
|
- test/db/jndi_config.rb
|
64
72
|
- test/db/logger.rb
|
73
|
+
- test/db/mssql.rb
|
65
74
|
- test/db/mysql.rb
|
66
75
|
- test/db/oracle.rb
|
67
76
|
- test/db/postgres.rb
|
77
|
+
- test/db/sqlite3.rb
|
68
78
|
- test/db2_simple_test.rb
|
69
79
|
- test/derby_multibyte_test.rb
|
70
80
|
- test/derby_simple_test.rb
|
@@ -88,12 +98,14 @@ files:
|
|
88
98
|
- test/models/data_types.rb
|
89
99
|
- test/models/entry.rb
|
90
100
|
- test/models/reserved_word.rb
|
101
|
+
- test/mssql_simple_test.rb
|
91
102
|
- test/mysql_multibyte_test.rb
|
92
103
|
- test/mysql_simple_test.rb
|
93
104
|
- test/oracle_simple_test.rb
|
94
105
|
- test/postgres_reserved_test.rb
|
95
106
|
- test/postgres_simple_test.rb
|
96
107
|
- test/simple.rb
|
108
|
+
- test/sqlite3_simple_test.rb
|
97
109
|
- lib/jdbc_adapter/jdbc.rake
|
98
110
|
- src/java/jdbc_adapter/JdbcAdapterInternalService.java
|
99
111
|
- src/java/jdbc_adapter/JdbcConnectionFactory.java
|