auth
auth/profile_postgres.go
Fix whitespace in Profile queries. The lack of whitespace around the ` = ?` expression would have bothered me, so I fixed it.
1.1 --- a/profile_postgres.go Sat Mar 21 14:53:15 2015 -0400 1.2 +++ b/profile_postgres.go Sat Mar 21 18:46:57 2015 -0400 1.3 @@ -119,7 +119,7 @@ 1.4 query.IncludeIfNotNil(pan.GetUnquotedColumn(profile, "Deleted")+" = ?", change.Deleted) 1.5 query.FlushExpressions(", ") 1.6 query.IncludeWhere() 1.7 - query.Include(pan.GetUnquotedColumn(profile, "ID")+"= ?", id) 1.8 + query.Include(pan.GetUnquotedColumn(profile, "ID")+" = ?", id) 1.9 return query.FlushExpressions(" ") 1.10 } 1.11 1.12 @@ -177,7 +177,7 @@ 1.13 var login Login 1.14 query := pan.New(pan.POSTGRES, "DELETE FROM "+pan.GetTableName(login)) 1.15 query.IncludeWhere() 1.16 - query.Include(pan.GetUnquotedColumn(login, "Value")+"= ? AND "+pan.GetUnquotedColumn(login, "ProfileID")+"= ?", value, profile) 1.17 + query.Include(pan.GetUnquotedColumn(login, "Value")+" = ? AND "+pan.GetUnquotedColumn(login, "ProfileID")+" = ?", value, profile) 1.18 return query.FlushExpressions(" ") 1.19 } 1.20 1.21 @@ -200,9 +200,9 @@ 1.22 func (p *postgres) recordLoginUseSQL(value string, when time.Time) *pan.Query { 1.23 var login Login 1.24 query := pan.New(pan.POSTGRES, "UPDATE "+pan.GetTableName(login)+" SET ") 1.25 - query.Include(pan.GetUnquotedColumn(login, "LastUsed")+"= ?", when) 1.26 + query.Include(pan.GetUnquotedColumn(login, "LastUsed")+" = ?", when) 1.27 query.IncludeWhere() 1.28 - query.Include(pan.GetUnquotedColumn(login, "Value")+"= ?", value) 1.29 + query.Include(pan.GetUnquotedColumn(login, "Value")+" = ?", value) 1.30 return query.FlushExpressions(" ") 1.31 } 1.32 1.33 @@ -217,7 +217,7 @@ 1.34 fields, _ := pan.GetFields(login) 1.35 query := pan.New(pan.POSTGRES, "SELECT "+pan.QueryList(fields)+" FROM "+pan.GetTableName(login)) 1.36 query.IncludeWhere() 1.37 - query.Include(pan.GetUnquotedColumn(login, "ProfileID")+"= ?", profile) 1.38 + query.Include(pan.GetUnquotedColumn(login, "ProfileID")+" = ?", profile) 1.39 query.IncludeLimit(int64(num)) 1.40 query.IncludeOffset(int64(offset)) 1.41 return query.FlushExpressions(" ")