Log the creation of a full text search index on the MySQL side.

This commit is contained in:
Par Winzell
2007-08-14 16:09:23 +00:00
parent e5bf0d9d97
commit f80ce4d862
@@ -26,9 +26,11 @@ import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Time;
import java.sql.Timestamp;
import com.samskivert.Log;
import com.samskivert.jdbc.JDBCUtil;
import com.samskivert.jdbc.depot.FieldMarshaller.BooleanMarshaller;
import com.samskivert.jdbc.depot.FieldMarshaller.ByteArrayMarshaller;
@@ -150,10 +152,10 @@ public class MySQLBuilder
}
update.append(")");
PreparedStatement stmt = null;
Statement stmt = conn.createStatement();
try {
stmt = conn.prepareStatement(update.toString());
stmt.executeUpdate();
Log.info("Adding full-text search index: ftsIx_" + fts.name());
stmt.executeUpdate(update.toString());
} finally {
JDBCUtil.close(stmt);
}