From f2912711b9521a42492e48636a36584441035e43 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Nieto?= <jose.carlos@menteslibres.net>
Date: Tue, 10 Jun 2014 13:00:03 -0500
Subject: [PATCH] Fixing db.Raw usage.

---
 postgresql/database_test.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/postgresql/database_test.go b/postgresql/database_test.go
index 371c2639..2813dce7 100644
--- a/postgresql/database_test.go
+++ b/postgresql/database_test.go
@@ -744,9 +744,9 @@ func TestRawRelations(t *testing.T) {
 		t.Fatalf(err.Error())
 	}
 
-	res := artistPublication.Find(db.Cond{
-		"a.id": db.Raw{"p.author_id"},
-	}).Select(
+	res := artistPublication.Find(
+		db.Raw{"a.id = p.author_id"},
+	).Select(
 		"p.id",
 		"p.title as publication_title",
 		"a.name AS artist_name",
-- 
GitLab