balld 00/08/06 19:24:28
Modified: src/org/apache/cocoon/processor/xsp/library/sql
XSPSQLLibrary.java
Log:
patched xsp sql library to do array to string conversion when using a Format
object on a text column
Revision Changes Path
1.10 +8 -2
xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/XSPSQLLibrary.java
Index: XSPSQLLibrary.java
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/XSPSQLLibrary.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- XSPSQLLibrary.java 2000/07/06 03:40:22 1.9
+++ XSPSQLLibrary.java 2000/08/07 02:24:28 1.10
@@ -62,7 +62,7 @@
* A processor that performs SQL database queries.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Donald Ball</a>
- * @version $Revision: 1.9 $ $Date: 2000/07/06 03:40:22 $
+ * @version $Revision: 1.10 $ $Date: 2000/08/07 02:24:28 $
*/
public class XSPSQLLibrary {
@@ -313,7 +313,13 @@
formatted_value =
value.toString();
}
} else {
- formatted_value =
format.format(value);
+ if (value instanceof byte[]) {
+ formatted_value =
format.format(new String((byte[])value));
+ } else if (value instanceof
char[]) {
+ formatted_value =
format.format(new String((char[])value));
+ } else {
+ formatted_value =
format.format(value);
+ }
}
if (create_row_elements &&
create_id_attribute &&