From fa9712151a091b20068a80e2ae6dcd95cde7ec4b Mon Sep 17 00:00:00 2001 From: theli Date: Wed, 21 Jun 2006 13:01:06 +0000 Subject: [PATCH] *) dbtest.java: bugfix for mysql test. data was not written correctly git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2230 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/dbtest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/dbtest.java b/source/dbtest.java index 084281325..58f1b15f9 100644 --- a/source/dbtest.java +++ b/source/dbtest.java @@ -388,6 +388,7 @@ final class dbTable implements kelondroIndex { result.close(); sqlStatement.close(); + if (value == null) return null; kelondroRow.Entry entry = this.rowdef.newEntry(value); return entry; } catch (Exception e) { @@ -412,7 +413,7 @@ final class dbTable implements kelondroIndex { PreparedStatement sqlStatement = this.theDBConnection.prepareStatement(sqlQuery); sqlStatement.setString(1, new String(row.getColString(0, null))); - sqlStatement.setBytes(2, row.getColBytes(1)); + sqlStatement.setBytes(2, row.bytes()); sqlStatement.execute(); sqlStatement.close();