rem: writeln(query); 
context: function listReferrers_macro() {	var str = "";	var c = getDBConnection("antville");	error = c.getLastError();	if (error)		return("Error establishing DB connection: " + error);	// we're doing this with direct db access here	// (there's no need to do it with prototypes):	var query = "select *, count(*) as COUNT from ACCESS where WEBLOG_ID = " + this._id + " and DATE > NOW()-1000000 and REFERRER not like \"" + this.href() + "%\" group by REFERRER order by COUNT desc, REFERRER asc;";	writeln(query);	var rows = c.executeRetrieval(query);	error = c.getLastError();	if (error)		return("Error executing SQL query: " + error);		var param = new Object();	while (rows.next()) {		param.count = rows.getColumnItem("COUNT");		param.referrer = rows.getColumnItem("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/24eb29d7c1175946ff2eb4e3563ff83ff868cb44/macros.js/clean/code/Site/macros.js