rem: convert.users = function(type) { var query = "select user_id, hash, salt, user_url from av_user"; rows = db.executeRetrieval(query); while (rows && rows.next()) { sql = "update av_user set metadata = " + quote({ hash: rows.getColumnItem("hash"), salt: rows.getColumnItem("salt"), url: rows.getColumnItem("user_url") }.toSource()) + " where user_id = " + rows.getColumnItem("user_id"); writeln(sql); db.executeCommand(sql); } 
add: convert.users = function() { retrieve("select id, hash, salt, USER_URL from AV_USER"); traverse(function() { var metadata = { hash: this.hash, salt: this.salt, url: this.USER_URL } execute("update AV_USER set metadata = " + quote(metadata.toSource()) + " where id = " + this.id); }); 
context: convert.users = function(type) {   var query = "select user_id, hash, salt, user_url from av_user";   rows = db.executeRetrieval(query);   while (rows && rows.next()) {      sql = "update av_user set metadata = " + quote({         hash: rows.getColumnItem("hash"),         salt: rows.getColumnItem("salt"),         url: rows.getColumnItem("user_url")      }.toSource()) + " where user_id = " + rows.getColumnItem("user_id");      writeln(sql);      db.executeCommand(sql);   }}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/2578fcd36f6afe81c2eb6139fe51d41c496bd131/Global.js/buggy/updater/Global/Global.js