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
commit0eb85d166f355e27c5f3637eb6708d07c3049f69 (patch)
treeb1a9b0e21eadf5b43828229df3ebe711429bd134
parentPass packageId, not a hard coded 1. (diff)
downloadgentoobrowse-api-0eb85d166f355e27c5f3637eb6708d07c3049f69.tar.bz2
gentoobrowse-api-0eb85d166f355e27c5f3637eb6708d07c3049f69.tar.xz
gentoobrowse-api-0eb85d166f355e27c5f3637eb6708d07c3049f69.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