c3-activerecord-jdbc-adapter 1.1.3 → 1.1.3.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.
Binary file
|
data/rakelib/test.rake
CHANGED
@@ -53,7 +53,7 @@ task :test_postgresql => [:test_postgres]
|
|
53
53
|
task :test_pgsql => [:test_postgres]
|
54
54
|
|
55
55
|
# Ensure driver for these DBs is on your classpath
|
56
|
-
%w(oracle db2 cachedb informix).each do |d|
|
56
|
+
%w(oracle db2 cachedb informix teradata).each do |d|
|
57
57
|
Rake::TestTask.new("test_#{d}") do |t|
|
58
58
|
t.test_files = FileList["test/#{d}*_test.rb"]
|
59
59
|
t.libs = []
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: c3-activerecord-jdbc-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.1.3
|
5
|
+
version: 1.1.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nick Sieger, Ola Bini and JRuby contributors
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/active_record/connection_adapters/oracle_adapter.rb
|
72
72
|
- lib/active_record/connection_adapters/postgresql_adapter.rb
|
73
73
|
- lib/active_record/connection_adapters/sqlite3_adapter.rb
|
74
|
+
- lib/active_record/connection_adapters/teradata_adapter.rb
|
74
75
|
- lib/arel/engines/sql/compilers/db2_compiler.rb
|
75
76
|
- lib/arel/engines/sql/compilers/derby_compiler.rb
|
76
77
|
- lib/arel/engines/sql/compilers/h2_compiler.rb
|
@@ -140,6 +141,9 @@ files:
|
|
140
141
|
- lib/arjdbc/sqlite3/adapter.rb
|
141
142
|
- lib/arjdbc/sqlite3/connection_methods.rb
|
142
143
|
- lib/arjdbc/sybase/adapter.rb
|
144
|
+
- lib/arjdbc/teradata.rb
|
145
|
+
- lib/arjdbc/teradata/adapter.rb
|
146
|
+
- lib/arjdbc/teradata/connection_methods.rb
|
143
147
|
- lib/generators/jdbc/jdbc_generator.rb
|
144
148
|
- lib/jdbc_adapter/rake_tasks.rb
|
145
149
|
- lib/jdbc_adapter/version.rb
|
@@ -232,11 +236,6 @@ files:
|
|
232
236
|
- rails_generators/jdbc_generator.rb
|
233
237
|
- rails_generators/templates/config/initializers/jdbc.rb
|
234
238
|
- rails_generators/templates/lib/tasks/jdbc.rake
|
235
|
-
- lib/active_record/connection_adapters/teradata_adapter.rb
|
236
|
-
- lib/arjdbc/teradata.rb
|
237
|
-
- lib/arjdbc/teradata/adapter.rb
|
238
|
-
- lib/arjdbc/teradata/connection_methods.rb
|
239
|
-
- src/java/arjdbc/teradata/TeradataRubyJdbcConnection.java
|
240
239
|
has_rdoc: true
|
241
240
|
homepage: http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter
|
242
241
|
licenses: []
|
@@ -1,62 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
**** BEGIN LICENSE BLOCK *****
|
3
|
-
* Copyright (c) 2006-2010 Nick Sieger <nick@nicksieger.com>
|
4
|
-
* Copyright (c) 2006-2007 Ola Bini <ola.bini@gmail.com>
|
5
|
-
* Copyright (c) 2008-2009 Thomas E Enebo <enebo@acm.org>
|
6
|
-
*
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining
|
8
|
-
* a copy of this software and associated documentation files (the
|
9
|
-
* "Software"), to deal in the Software without restriction, including
|
10
|
-
* without limitation the rights to use, copy, modify, merge, publish,
|
11
|
-
* distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
-
* permit persons to whom the Software is furnished to do so, subject to
|
13
|
-
* the following conditions:
|
14
|
-
*
|
15
|
-
* The above copyright notice and this permission notice shall be
|
16
|
-
* included in all copies or substantial portions of the Software.
|
17
|
-
*
|
18
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
19
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
21
|
-
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
|
-
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
|
-
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
-
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
-
***** END LICENSE BLOCK *****/
|
26
|
-
package arjdbc.teradata;
|
27
|
-
|
28
|
-
import org.jruby.Ruby;
|
29
|
-
import org.jruby.RubyClass;
|
30
|
-
import org.jruby.runtime.ObjectAllocator;
|
31
|
-
import org.jruby.runtime.builtin.IRubyObject;
|
32
|
-
|
33
|
-
import arjdbc.jdbc.RubyJdbcConnection;
|
34
|
-
|
35
|
-
/**
|
36
|
-
*
|
37
|
-
* @author mikestone
|
38
|
-
*/
|
39
|
-
public class TeradataRubyJdbcConnection extends RubyJdbcConnection {
|
40
|
-
protected TeradataRubyJdbcConnection(Ruby runtime, RubyClass metaClass) {
|
41
|
-
super(runtime, metaClass);
|
42
|
-
}
|
43
|
-
|
44
|
-
@Override
|
45
|
-
protected boolean databaseSupportsSchemas() {
|
46
|
-
return true;
|
47
|
-
}
|
48
|
-
|
49
|
-
public static RubyClass createTeradataJdbcConnectionClass(Ruby runtime, RubyClass jdbcConnection) {
|
50
|
-
RubyClass clazz = RubyJdbcConnection.getConnectionAdapters(runtime).defineClassUnder("TeradataJdbcConnection",
|
51
|
-
jdbcConnection, Teradata_JDBCCONNECTION_ALLOCATOR);
|
52
|
-
clazz.defineAnnotatedMethods(TeradataRubyJdbcConnection.class);
|
53
|
-
|
54
|
-
return clazz;
|
55
|
-
}
|
56
|
-
|
57
|
-
private static ObjectAllocator Teradata_JDBCCONNECTION_ALLOCATOR = new ObjectAllocator() {
|
58
|
-
public IRubyObject allocate(Ruby runtime, RubyClass klass) {
|
59
|
-
return new TeradataRubyJdbcConnection(runtime, klass);
|
60
|
-
}
|
61
|
-
};
|
62
|
-
}
|