You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rg...@apache.org on 2017/02/09 10:15:29 UTC

svn commit: r1782302 - /qpid/java/trunk/broker-plugins/jdbc-store/src/main/java/org/apache/qpid/server/store/jdbc/JDBCDetails.java

Author: rgodfrey
Date: Thu Feb  9 10:15:29 2017
New Revision: 1782302

URL: http://svn.apache.org/viewvc?rev=1782302&view=rev
Log:
QPID-7668 : Add configuration for MySQL to JDBCDetails
This closes #2. 

Modified:
    qpid/java/trunk/broker-plugins/jdbc-store/src/main/java/org/apache/qpid/server/store/jdbc/JDBCDetails.java

Modified: qpid/java/trunk/broker-plugins/jdbc-store/src/main/java/org/apache/qpid/server/store/jdbc/JDBCDetails.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/jdbc-store/src/main/java/org/apache/qpid/server/store/jdbc/JDBCDetails.java?rev=1782302&r1=1782301&r2=1782302&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/jdbc-store/src/main/java/org/apache/qpid/server/store/jdbc/JDBCDetails.java (original)
+++ qpid/java/trunk/broker-plugins/jdbc-store/src/main/java/org/apache/qpid/server/store/jdbc/JDBCDetails.java Thu Feb  9 10:15:29 2017
@@ -62,6 +62,8 @@ public abstract class JDBCDetails
                                                                          true);
         private static final JDBCDetails DERBY = new KnownJDBCDetails("derby", "blob", "varchar(%d) for bit data", "bigint", false,
                                                                       true);
+        private static final JDBCDetails MYSQL = new KnownJDBCDetails("mysql", "blob", "varbinary(%d)", "bigint", false,
+                true);
 
         static
         {
@@ -73,6 +75,7 @@ public abstract class JDBCDetails
                 map.put(SYBASE.getVendor(), SYBASE);
                 map.put(POSTGRES.getVendor(), POSTGRES);
                 map.put(DERBY.getVendor(), DERBY);
+                map.put(MYSQL.getVendor(), MYSQL);
                 map.put(FALLBACK.getVendor(), FALLBACK);
             }
             finally



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org