]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6552 fix bad merge
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 17 Sep 2015 13:36:51 +0000 (15:36 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 17 Sep 2015 13:36:51 +0000 (15:36 +0200)
- fix ruby activerecord adapter
- do not package jtds.jar

pom.xml
server/sonar-web/src/main/webapp/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/jdbc/type_converter.rb
sonar-application/assembly.xml
sonar-application/pom.xml
sonar-db/pom.xml

diff --git a/pom.xml b/pom.xml
index 917543527d7022391a86e44f0db88f1602756ec0..b21b09e3d06fa44ec9cda70229f85496a8d1cb0e 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <artifactId>postgresql</artifactId>
         <version>9.3-1102-jdbc41</version>
       </dependency>
-      <dependency>
-        <groupId>net.sourceforge.jtds</groupId>
-        <artifactId>jtds</artifactId>
-        <version>1.3.1</version>
-      </dependency>
       <dependency>
         <groupId>org.codehaus.woodstox</groupId>
         <artifactId>woodstox-core-lgpl</artifactId>
           <groupId>org.postgresql</groupId>
           <artifactId>postgresql</artifactId>
         </dependency>
-        <dependency>
-          <groupId>net.sourceforge.jtds</groupId>
-          <artifactId>jtds</artifactId>
-        </dependency>
         <dependency>
           <!-- this artifact is located in the SonarSource internal repository -->
           <groupId>com.oracle</groupId>
index eca9da0933d6b87d9e834e7850684b03bda50547..e51fd76ee9c3c570dad861ff52288941d1b77ddb 100644 (file)
@@ -48,12 +48,14 @@ module ActiveRecord
                           lambda {|r| r['type_name'] =~ /^integer/i}],  #Num of milliseconds for SQLite3 JDBC Driver
         :timestamp   => [ lambda {|r| Jdbc::Types::TIMESTAMP == r['data_type'].to_i},
                           lambda {|r| r['type_name'] =~ /^timestamp$/i},
-                          lambda {|r| r['type_name'] =~ /^datetime/i},
+                          lambda {|r| r['type_name'] =~ /^datetime$/i},
+                          lambda {|r| r['type_name'] =~ /^datetime.+/i},
                           lambda {|r| r['type_name'] =~ /^date/i},
                           lambda {|r| r['type_name'] =~ /^integer/i}],  #Num of milliseconds for SQLite3 JDBC Driver
         :time        => [ lambda {|r| Jdbc::Types::TIME == r['data_type'].to_i},
                           lambda {|r| r['type_name'] =~ /^time$/i},
-                          lambda {|r| r['type_name'] =~ /^datetime/i},  # For Informix
+                          lambda {|r| r['type_name'] =~ /^datetime$/i},
+                          lambda {|r| r['type_name'] =~ /^datetime.+/i},  # For Informix
                           lambda {|r| r['type_name'] =~ /^date/i},
                           lambda {|r| r['type_name'] =~ /^integer/i}],  #Num of milliseconds for SQLite3 JDBC Driver
         :date        => [ lambda {|r| Jdbc::Types::DATE == r['data_type'].to_i},
index 932f86ea1e55e6a6af3f8f59f5180c537528ff0b..5fb7b1b236fa6c9bddd62c396b06866a39328e55 100644 (file)
       <unpack>false</unpack>
       <scope>provided</scope>
     </dependencySet>
-    <dependencySet>
-      <outputDirectory>lib/jdbc/jtds/</outputDirectory>
-      <includes>
-        <include>net.sourceforge.jtds:jtds</include>
-      </includes>
-      <unpack>false</unpack>
-      <scope>provided</scope>
-    </dependencySet>
     <dependencySet>
       <outputDirectory>lib/jdbc/h2/</outputDirectory>
       <includes>
index 5f6fd2eb504fe7652c25b01cd4f4749f89f2fcc2..2d8175a095b0ab185da044df412de1246048b49f 100644 (file)
       <artifactId>postgresql</artifactId>
       <scope>provided</scope>
     </dependency>
-    <dependency>
-      <groupId>net.sourceforge.jtds</groupId>
-      <artifactId>jtds</artifactId>
-      <scope>provided</scope>
-    </dependency>
     <dependency>
       <groupId>com.h2database</groupId>
       <artifactId>h2</artifactId>
index 753d725295bfdbbe226b04eb471332b47c884561..02ea2ab18a1f8f233a35e957555a84aa16d319e4 100644 (file)
       <artifactId>postgresql</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>net.sourceforge.jtds</groupId>
-      <artifactId>jtds</artifactId>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>com.h2database</groupId>
       <artifactId>h2</artifactId>