aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-09-06 19:45:09 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-09-06 19:45:09 +0200
commitb455949b54c39efec0bb2b204553e3e44808a228 (patch)
tree00dea12d7c71431dc03690564c504eed43064bf2 /sonar-server
parentc8e8ebe94887a60f8614af61a9b187a9ec6af997 (diff)
downloadsonarqube-b455949b54c39efec0bb2b204553e3e44808a228.tar.gz
sonarqube-b455949b54c39efec0bb2b204553e3e44808a228.zip
SONAR-2549 do not guess Oracle column type by name
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/config/initializers/oracle.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/config/initializers/oracle.rb b/sonar-server/src/main/webapp/WEB-INF/config/initializers/oracle.rb
new file mode 100644
index 00000000000..a5db8326420
--- /dev/null
+++ b/sonar-server/src/main/webapp/WEB-INF/config/initializers/oracle.rb
@@ -0,0 +1,11 @@
+ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.class_eval do
+ # id columns and columns which end with _id will always be converted to integers
+ self.emulate_integers_by_column_name = false
+ # DATE columns which include "date" in name will be converted to Date, otherwise to Time
+ self.emulate_dates_by_column_name = false
+ # true and false will be stored as 'Y' and 'N'
+ self.emulate_booleans_from_strings = false
+ # start primary key sequences from 1 (and not 10000) and take just one next value in each session
+ self.default_sequence_start_value = "1 NOCACHE INCREMENT BY 1"
+ # other settings ...
+end \ No newline at end of file