adapted sql query in backlinks_macro() for using antville with hsqldb connection

This commit is contained in:
Tobi Schäfer 2002-05-13 18:20:11 +00:00
parent aa29e9d8c4
commit 3032543b0a

View file

@ -401,7 +401,7 @@ function backlinks_macro() {
// 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 STORY_ID = " + this._id + " group by REFERRER order by COUNT desc, REFERRER asc;";
var query = "select *, count(*) as \"COUNT\" from ACCESS where STORY_ID = " + this._id + " group by REFERRER order by \"COUNT\" desc, REFERRER asc;";
var rows = c.executeRetrieval(query);
error = c.getLastError();
if (error)