rem: var dbError = c.getLasterror(); 
add: var dbError = c.getLastError(); 
context: function listReferrers_macro() {  var str = "";  var c = getDBConnection("antville");  var dbError = c.getLasterror();  if (dbError)    return (getMsg("error","database",dbError));  // we're doing this with direct db access here  // (there's no need to do it with prototypes):  var d = new Date(new Date() - 1000 * 60 * 60 * 24); // 24 hours ago  var query = "select *, count(*) as \"COUNT\" from AV_ACCESSLOG where ACCESSLOG_F_SITE = " + this._id + " and ACCESSLOG_DATE > '" + d.format("yyyy-MM-dd HH:mm:ss") + "' group by ACCESSLOG_REFERRER order by \"COUNT\" desc, ACCESSLOG_REFERRER asc;";  var rows = c.executeRetrieval(query);  var dbError = c.getLasterror();  if (dbError)    return (getMsg("error","database",dbError));  var param = new Object();  while (rows.next()) {    param.count = rows.getColumnItem("COUNT");    // these two lines are necessary only for hsqldb connections:    // 2002-06-08: but oops! this does NOT work with mysql, again...    // (so i commented them out as i think hsqldb is abandoned, anyway)    // if (param.count == 0);    //    continue;    param.referrer = rows.getColumnItem("ACCESSLOG_REFERRER");    param.text = param.referrer.length > 50 ? param.referrer.substring(0, 50) + "..." : param.referrer;    str += this.renderSkinAsString("referrerItem", param);  }  rows.release();  return(str);}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/5a96582c5e6ed74abb2253c598d65ba2497685bf/macros.js/clean/code/Site/macros.js