adapted sql query in backlinks_macro() for using antville with hsqldb connection
This commit is contained in:
parent
aa29e9d8c4
commit
3032543b0a
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ function backlinks_macro() {
|
||||||
|
|
||||||
// we're doing this with direct db access here
|
// we're doing this with direct db access here
|
||||||
// (there's no need to do it with prototypes):
|
// (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);
|
var rows = c.executeRetrieval(query);
|
||||||
error = c.getLastError();
|
error = c.getLastError();
|
||||||
if (error)
|
if (error)
|
||||||
|
|
Loading…
Add table
Reference in a new issue