You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by mt...@apache.org on 2009/04/02 20:45:33 UTC

svn commit: r761373 - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java openjpa-project/src/doc/manual/ref_guide_dbsetup.xml

Author: mtylenda
Date: Thu Apr  2 18:45:32 2009
New Revision: 761373

URL: http://svn.apache.org/viewvc?rev=761373&view=rev
Log:
OPENJPA-883: Documentation is out of date for some MySQLDictionary properties

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java
    openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java?rev=761373&r1=761372&r2=761373&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java (original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/MySQLDictionary.java Thu Apr  2 18:45:32 2009
@@ -46,8 +46,8 @@
     public String tableType = "innodb";
 
     /**
-     * Whether to use clobs. Some older versions of MySQL do not handle
-     * clobs properly so we default to false here.
+     * Whether to use clobs; defaults to true. Set this to false if you have an
+     * old version of MySQL which does not handle clobs properly.
      */
     public boolean useClobs = true;
 

Modified: openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml?rev=761373&r1=761372&r2=761373&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml (original)
+++ openjpa/trunk/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml Thu Apr  2 18:45:32 2009
@@ -3159,12 +3159,14 @@
                             DriverDeserializesBlobs
                         </secondary>
                     </indexterm>
-<literal>DriverDeserializesBlobs</literal>: Many MySQL drivers automatically
-deserialize BLOBs on calls to <methodname>ResultSet.getObject</methodname>. The
+<literal>DriverDeserializesBlobs</literal>: Many older MySQL drivers
+automatically deserialize BLOBs on calls to
+<methodname>ResultSet.getObject</methodname>. The
 <classname>MySQLDictionary</classname> overrides the standard <methodname>
-DBDictionary.getBlobObject</methodname> method to take this into account. If
-your driver does not deserialize automatically, set this property to 
-<literal>false</literal>.
+DBDictionary.getBlobObject</methodname> method to take this into account.
+Defaults to <literal>true</literal> if driver version is less than 5.0,
+<literal>false</literal> otherwise. If your driver deserializes
+automatically, you may want to set this property to <literal>true</literal>.
                     </para>
                 </listitem>
                 <listitem id="MySQLDictionary.TableType">
@@ -3191,9 +3193,9 @@
                             UseClobs
                         </secondary>
                     </indexterm>
-<literal>UseClobs</literal>: Some older versions of MySQL do not handle clobs
-correctly. To enable clob functionality, set this to <literal>true</literal>. 
-Defaults to <literal>false</literal>.
+<literal>UseClobs</literal>: Some older versions of MySQL do not handle CLOBs
+correctly. To disable CLOB functionality, set this to <literal>false</literal>. 
+Defaults to <literal>true</literal>.
                     </para>
                 </listitem>
                 <listitem id="MySQLDictionary.OptimizeMultiTableDeletes">