You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ma...@apache.org on 2011/06/14 07:34:27 UTC

svn commit: r1135383 - in /db/derby/code/trunk/java: client/org/apache/derby/client/am/Lob.java engine/org/apache/derby/loc/messages.xml

Author: mamta
Date: Tue Jun 14 05:34:27 2011
New Revision: 1135383

URL: http://svn.apache.org/viewvc?rev=1135383&view=rev
Log:
DERBY-3913 mismatch between error XCL30 and 22003.S.4 and parameters in usage

22003.S.4 had incorrect number of parameters in messages.xml, this commit fixes that.

XCL30 was not getting used correctly in Lob.java, this commit fixes that.



Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/am/Lob.java
    db/derby/code/trunk/java/engine/org/apache/derby/loc/messages.xml

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/Lob.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/Lob.java?rev=1135383&r1=1135382&r2=1135383&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/Lob.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/Lob.java Tue Jun 14 05:34:27 2011
@@ -259,8 +259,8 @@ public abstract class Lob implements Uni
             throw new SqlException(null,
                         new ClientMessageId(
                             SQLState.LANG_STREAMING_COLUMN_I_O_EXCEPTION),
-                        typeDesc,
-                        ioe
+                            ioe,
+                            typeDesc
                     );
         }
     }

Modified: db/derby/code/trunk/java/engine/org/apache/derby/loc/messages.xml
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/loc/messages.xml?rev=1135383&r1=1135382&r2=1135383&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/loc/messages.xml (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/loc/messages.xml Tue Jun 14 05:34:27 2011
@@ -607,7 +607,7 @@ Guide.
 
             <msg>
                 <name>22003.S.4</name>
-                <text>The length ({0}) exceeds the maximum length for the data type ({1}).</text>
+                <text>The length ({0}) exceeds the maximum length ({1}) for the data type.</text>
                 <arg>number</arg>
                 <arg>datatypeName</arg>
             </msg>