summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-10 17:12:14 +0800
committerGitHub <noreply@github.com>2016-11-10 17:12:14 +0800
commitc6c840faf7ade5007f1fb3453d12c14486e7c1fb (patch)
treedf105154af4e3a470c1195c5f1e4a1dda7dd46cc /models/user.go
parentb5bfab98552a1f9fb03f4f4246ce4772cbc343eb (diff)
parent7dcc3bc3d7469770fa020c1728b43522afca42d5 (diff)
downloadgitea-c6c840faf7ade5007f1fb3453d12c14486e7c1fb.tar.gz
gitea-c6c840faf7ade5007f1fb3453d12c14486e7c1fb.zip
Merge pull request #129 from lunny/lunny/SQL_instead_Sql
use x.SQL instead of x.Sql
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index 8ede2181bb..f867aa298a 100644
--- a/models/user.go
+++ b/models/user.go
@@ -859,7 +859,7 @@ func UserPath(userName string) string {
func GetUserByKeyID(keyID int64) (*User, error) {
user := new(User)
- has, err := x.Sql("SELECT a.* FROM `user` AS a, public_key AS b WHERE a.id = b.owner_id AND b.id=?", keyID).Get(user)
+ has, err := x.SQL("SELECT a.* FROM `user` AS a, public_key AS b WHERE a.id = b.owner_id AND b.id=?", keyID).Get(user)
if err != nil {
return nil, err
} else if !has {