1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-14 06:12:50 +00:00

Fix sql column error

This commit is contained in:
杨赫然
2022-12-08 14:36:51 +08:00
parent 5c741c15ca
commit c0b7ba6013
2 changed files with 3 additions and 3 deletions

View File

@@ -511,14 +511,14 @@ ccnet_org_manager_get_org_emailusers (CcnetOrgManager *mgr,
if (start == -1 && limit == -1) {
sql = "SELECT u.email FROM OrgUser u, Organization o "
"WHERE u.org_id = o.org_id AND "
"WHERE o.url_prefix = ? "
"o.url_prefix = ? "
"ORDER BY email";
rc = seaf_db_statement_foreach_row (db, sql, get_org_emailusers, &ret,
1, "string", url_prefix);
} else {
sql = "SELECT u.email FROM OrgUser u, Organization o "
"WHERE u.org_id = o.org_id AND "
"WHERE o.url_prefix = ? "
"o.url_prefix = ? "
" ORDER BY email LIMIT ? OFFSET ?";
rc = seaf_db_statement_foreach_row (db, sql, get_org_emailusers, &ret,
3, "string", url_prefix,

View File

@@ -424,7 +424,7 @@ func GetReposByOwner(email string) ([]*SharedRepo, error) {
"LEFT JOIN RepoInfo i ON o.repo_id = i.repo_id " +
"LEFT JOIN VirtualRepo v ON o.repo_id = v.repo_id " +
"WHERE owner_id=? AND " +
"v.repo_Id IS NULL " +
"v.repo_id IS NULL " +
"ORDER BY i.update_time DESC, o.repo_id"
stmt, err := seafileDB.Prepare(query)