summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-04-26 01:41:13 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-04-26 01:41:13 +0100
commitdc5111ca47107e51b50933d2b886586ab7292036 (patch)
treeb1a9b0e21eadf5b43828229df3ebe711429bd134
parentPass packageId, not a hard coded 1. (diff)
downloadgentoobrowse-api-dc5111ca47107e51b50933d2b886586ab7292036.tar.bz2
gentoobrowse-api-dc5111ca47107e51b50933d2b886586ab7292036.tar.xz
gentoobrowse-api-dc5111ca47107e51b50933d2b886586ab7292036.zip
Filter by the right table alias
-rw-r--r--gentoobrowse-api/service/utils/entityWhereFilter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoobrowse-api/service/utils/entityWhereFilter.cpp b/gentoobrowse-api/service/utils/entityWhereFilter.cpp
index 8e29cfe..d6189bd 100644
--- a/gentoobrowse-api/service/utils/entityWhereFilter.cpp
+++ b/gentoobrowse-api/service/utils/entityWhereFilter.cpp
@@ -12,7 +12,7 @@ namespace Gentoo {
void
EntityWhereFilter::writeSql(AdHoc::Buffer & sql)
{
- sql.appendbf("b.%s = ?", entityColName);
+ sql.appendbf("a.%s = ?", entityColName);
}
void