*) 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
pull/1/head
theli 19 years ago
parent f55d3d0d79
commit fa9712151a

@ -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();

Loading…
Cancel
Save