harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r575182 - in /harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal: nls/messages.properties rowset/CachedRowSetImpl.java
Date Thu, 13 Sep 2007 06:11:16 GMT
Author: tonywu
Date: Wed Sep 12 23:11:15 2007
New Revision: 575182

URL: http://svn.apache.org/viewvc?rev=575182&view=rev
Log:
add NLS error message

Modified:
    harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/nls/messages.properties
    harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/CachedRowSetImpl.java

Modified: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/nls/messages.properties?rev=575182&r1=575181&r2=575182&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/nls/messages.properties
(original)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/nls/messages.properties
Wed Sep 12 23:11:15 2007
@@ -64,3 +64,4 @@
 rowset.1=Not a valid column name
 rowset.2=Negative page size
 rowset.3=Table name should not be null
+rowset.4=Not an insert row

Modified: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/CachedRowSetImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/CachedRowSetImpl.java?rev=575182&r1=575181&r2=575182&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/CachedRowSetImpl.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/main/java/org/apache/harmony/sql/internal/rowset/CachedRowSetImpl.java
Wed Sep 12 23:11:15 2007
@@ -606,7 +606,8 @@
     public void insertRow() throws SQLException {
         checkValidRow();
         if (currentRow != insertRow) {
-            throw new SQLException();
+            // rowset.4=Not an insert row
+            throw new SQLException(Messages.getString("rowset.4"));
         }
         currentRow.setInsert();
         rows.add(insertRow);



Mime
View raw message