rem: var sql = "SELECT id, target, name, source, state, startTime, referrer " + "FROM moz_downloads WHERE name LIKE ?1 ESCAPE '/' " + "AND state != ?2 AND state != ?3 ORDER BY endTime ASC";  
context: function buildDownloadListWithSearch(aTerms){  gSearching = true;  gDownloadsOtherLabel.value = gDownloadsOtherLabel.getAttribute("searchlabel");  // remove and trailing or leading whitespace first  aTerms = aTerms.replace(/^\s+|\s+$/, "");  if (aTerms.length == 0) {    gSearching = false;    gDownloadsOtherLabel.value = gDownloadsOtherLabel.getAttribute("completedlabel");    buildDefaultView();    return;  }  var sql = "SELECT id, target, name, source, state, startTime, referrer " +            "FROM moz_downloads WHERE name LIKE ?1 ESCAPE '/' " +            "AND state != ?2 AND state != ?3 ORDER BY endTime ASC";  var db = gDownloadManager.DBConnection;  var stmt = db.createStatement(sql);  try {    var paramForLike = stmt.escapeStringForLIKE(aTerms, '/');    stmt.bindStringParameter(0, "%" + paramForLike + "%");    stmt.bindInt32Parameter(1, Ci.nsIDownloadManager.DOWNLOAD_DOWNLOADING);    stmt.bindInt32Parameter(2, Ci.nsIDownloadManager.DOWNLOAD_PAUSED);    buildDownloadList(stmt, gDownloadsOtherTitle);  } finally {    stmt.reset();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/041ca1a291b7410c24d4376f2fdce4dac243bd9f/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js