activerecord-oracle_enhanced-adapter 1.2.4 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/.gitignore +0 -1
  2. data/History.txt +20 -0
  3. data/README.rdoc +7 -3
  4. data/Rakefile +1 -2
  5. data/VERSION +1 -1
  6. data/activerecord-oracle_enhanced-adapter.gemspec +96 -0
  7. data/lib/active_record/connection_adapters/oracle_enhanced.rake +11 -8
  8. data/lib/active_record/connection_adapters/oracle_enhanced_activerecord_patches.rb +37 -0
  9. data/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb +317 -180
  10. data/lib/active_record/connection_adapters/oracle_enhanced_context_index.rb +282 -0
  11. data/lib/active_record/connection_adapters/oracle_enhanced_core_ext.rb +3 -2
  12. data/lib/active_record/connection_adapters/oracle_enhanced_dirty.rb +1 -1
  13. data/lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb +3 -3
  14. data/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb +6 -1
  15. data/lib/active_record/connection_adapters/oracle_enhanced_procedures.rb +143 -52
  16. data/lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb +2 -1
  17. data/lib/active_record/connection_adapters/oracle_enhanced_schema_dumper.rb +39 -20
  18. data/lib/active_record/connection_adapters/oracle_enhanced_tasks.rb +2 -1
  19. data/lib/active_record/connection_adapters/oracle_enhanced_version.rb +1 -1
  20. data/spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb +70 -11
  21. data/spec/active_record/connection_adapters/oracle_enhanced_adapter_structure_dumper_spec.rb +27 -20
  22. data/spec/active_record/connection_adapters/oracle_enhanced_context_index_spec.rb +334 -0
  23. data/spec/active_record/connection_adapters/oracle_enhanced_cpk_spec.rb +28 -22
  24. data/spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb +24 -28
  25. data/spec/active_record/connection_adapters/oracle_enhanced_dbms_output_spec.rb +13 -11
  26. data/spec/active_record/connection_adapters/oracle_enhanced_dirty_spec.rb +1 -1
  27. data/spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb +72 -69
  28. data/spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb +112 -6
  29. data/spec/active_record/connection_adapters/oracle_enhanced_schema_spec.rb +49 -1
  30. data/spec/spec_helper.rb +97 -19
  31. metadata +33 -22
  32. data/Manifest.txt +0 -32
  33. data/lib/active_record/connection_adapters/oracle_enhanced_reserved_words.rb +0 -126
data/Manifest.txt DELETED
@@ -1,32 +0,0 @@
1
- History.txt
2
- License.txt
3
- README.rdoc
4
- lib/active_record/connection_adapters/emulation/oracle_adapter.rb
5
- lib/active_record/connection_adapters/oracle_enhanced.rake
6
- lib/active_record/connection_adapters/oracle_enhanced_adapter.rb
7
- lib/active_record/connection_adapters/oracle_enhanced_connection.rb
8
- lib/active_record/connection_adapters/oracle_enhanced_core_ext.rb
9
- lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
10
- lib/active_record/connection_adapters/oracle_enhanced_dirty.rb
11
- lib/active_record/connection_adapters/oracle_enhanced_jdbc_connection.rb
12
- lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb
13
- lib/active_record/connection_adapters/oracle_enhanced_procedures.rb
14
- lib/active_record/connection_adapters/oracle_enhanced_reserved_words.rb
15
- lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb
16
- lib/active_record/connection_adapters/oracle_enhanced_schema_dumper.rb
17
- lib/active_record/connection_adapters/oracle_enhanced_schema_statements_ext.rb
18
- lib/active_record/connection_adapters/oracle_enhanced_tasks.rb
19
- lib/active_record/connection_adapters/oracle_enhanced_version.rb
20
- spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
21
- spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb
22
- spec/active_record/connection_adapters/oracle_enhanced_core_ext_spec.rb
23
- spec/active_record/connection_adapters/oracle_enhanced_cpk_spec.rb
24
- spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb
25
- spec/active_record/connection_adapters/oracle_enhanced_dbms_output_spec.rb
26
- spec/active_record/connection_adapters/oracle_enhanced_dirty_spec.rb
27
- spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
28
- spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb
29
- spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb
30
- spec/active_record/connection_adapters/oracle_enhanced_schema_spec.rb
31
- spec/spec.opts
32
- spec/spec_helper.rb
@@ -1,126 +0,0 @@
1
- module ActiveRecord #:nodoc:
2
- module ConnectionAdapters #:nodoc:
3
- module OracleEnhancedReservedWords #:nodoc:
4
-
5
- RESERVED_WORDS = {
6
- "ACCESS" => true,
7
- "ADD" => true,
8
- "ALL" => true,
9
- "ALTER" => true,
10
- "AND" => true,
11
- "ANY" => true,
12
- "AS" => true,
13
- "ASC" => true,
14
- "AUDIT" => true,
15
- "BETWEEN" => true,
16
- "BY" => true,
17
- "CHAR" => true,
18
- "CHECK" => true,
19
- "CLUSTER" => true,
20
- "COLUMN" => true,
21
- "COMMENT" => true,
22
- "COMPRESS" => true,
23
- "CONNECT" => true,
24
- "CREATE" => true,
25
- "CURRENT" => true,
26
- "DATE" => true,
27
- "DECIMAL" => true,
28
- "DEFAULT" => true,
29
- "DELETE" => true,
30
- "DESC" => true,
31
- "DISTINCT" => true,
32
- "DROP" => true,
33
- "ELSE" => true,
34
- "EXCLUSIVE" => true,
35
- "EXISTS" => true,
36
- "FILE" => true,
37
- "FLOAT" => true,
38
- "FOR" => true,
39
- "FROM" => true,
40
- "GRANT" => true,
41
- "GROUP" => true,
42
- "HAVING" => true,
43
- "IDENTIFIED" => true,
44
- "IMMEDIATE" => true,
45
- "IN" => true,
46
- "INCREMENT" => true,
47
- "INDEX" => true,
48
- "INITIAL" => true,
49
- "INSERT" => true,
50
- "INTEGER" => true,
51
- "INTERSECT" => true,
52
- "INTO" => true,
53
- "IS" => true,
54
- "LEVEL" => true,
55
- "LIKE" => true,
56
- "LOCK" => true,
57
- "LONG" => true,
58
- "MAXEXTENTS" => true,
59
- "MINUS" => true,
60
- "MLSLABEL" => true,
61
- "MODE" => true,
62
- "MODIFY" => true,
63
- "NOAUDIT" => true,
64
- "NOCOMPRESS" => true,
65
- "NOT" => true,
66
- "NOWAIT" => true,
67
- "NULL" => true,
68
- "NUMBER" => true,
69
- "OF" => true,
70
- "OFFLINE" => true,
71
- "ON" => true,
72
- "ONLINE" => true,
73
- "OPTION" => true,
74
- "OR" => true,
75
- "ORDER" => true,
76
- "PCTFREE" => true,
77
- "PRIOR" => true,
78
- "PRIVILEGES" => true,
79
- "PUBLIC" => true,
80
- "RAW" => true,
81
- "RENAME" => true,
82
- "RESOURCE" => true,
83
- "REVOKE" => true,
84
- "ROW" => true,
85
- "ROWID" => true,
86
- "ROWNUM" => true,
87
- "ROWS" => true,
88
- "SELECT" => true,
89
- "SESSION" => true,
90
- "SET" => true,
91
- "SHARE" => true,
92
- "SIZE" => true,
93
- "SMALLINT" => true,
94
- "START" => true,
95
- "SUCCESSFUL" => true,
96
- "SYNONYM" => true,
97
- "SYSDATE" => true,
98
- "TABLE" => true,
99
- "THEN" => true,
100
- "TO" => true,
101
- "TRIGGER" => true,
102
- "UID" => true,
103
- "UNION" => true,
104
- "UNIQUE" => true,
105
- "UPDATE" => true,
106
- "USER" => true,
107
- "VALIDATE" => true,
108
- "VALUES" => true,
109
- "VARCHAR" => true,
110
- "VARCHAR2" => true,
111
- "VIEW" => true,
112
- "WHENEVER" => true,
113
- "WHERE" => true,
114
- "WITH" => true
115
- }
116
-
117
- def quote_oracle_reserved_words(name)
118
- RESERVED_WORDS[name.to_s.upcase].nil? ? name : "\"#{name}\""
119
- end
120
- end
121
- end
122
- end
123
-
124
- ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.class_eval do
125
- include ActiveRecord::ConnectionAdapters::OracleEnhancedReservedWords
126
- end