// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package updatespeed;

import java.sql.*;

public class Convert3 {
    public static void main(String[] args) throws Exception {
        Class.forName(Config.DRIVER);
        long t1 = System.currentTimeMillis();
        Connection con = DriverManager.getConnection(Config.CONURL, Config.USER, Config.PASSWORD);
        Statement stmt = con.createStatement();
        stmt.executeUpdate("UPDATE tUsers SET fPassword = udf_hash(fPassword)");
        stmt.close();
        con.close();
        long t2 = System.currentTimeMillis();
        System.out.println((t2 - t1) / 1000.0);
    }
}
