Changeset: 919b50c99641 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=919b50c99641
Modified Files:
        java/src/nl/cwi/monetdb/jdbc/MonetClob.java
Branch: Jun2010
Log Message:

Add toString method that just shows the string content of the Clob.

This fixes some tests where JdbcClient is used to display content from
mserver in clob columns.


diffs (19 lines):

diff -r 0cd3147b77d7 -r 919b50c99641 java/src/nl/cwi/monetdb/jdbc/MonetClob.java
--- a/java/src/nl/cwi/monetdb/jdbc/MonetClob.java       Wed Jul 21 14:51:46 
2010 +0200
+++ b/java/src/nl/cwi/monetdb/jdbc/MonetClob.java       Wed Jul 21 15:04:46 
2010 +0200
@@ -182,4 +182,15 @@
        public void truncate(long len) {
                // this command is a no-op
        }
+
+       /**
+        * Returns the String behind this Clob.  This is a MonetClob
+        * extension that does not violate nor is described in the Clob
+        * interface.
+        *
+        * @return the String this Clob wraps.
+        */
+       public String toString() {
+               return(buf.toString());
+       }
 }
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to