Skip to content

Commit

Permalink
update-sql
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangming committed Nov 11, 2024
1 parent 77b7961 commit 1662b71
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions store/postgresql/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,7 @@ func rlockNamespace(queryRow func(query string, args ...interface{}) *sql.Row, n
// genNamespaceSelectSQL 生成namespace的查询语句
func genNamespaceSelectSQL() string {
str := `
SELECT name, COALESCE(comment, '') AS comment, token,
owner, flag, EXTRACT(EPOCH FROM ctime) AS ctime,
EXTRACT(EPOCH FROM mtime) AS mtime,
COALESCE(service_export_to, '{}'::json) AS service_export_to
FROM namespace
SELECT name, comment, token, owner, flag, ctime, mtime, service_export_to FROM namespace
`
return str
}
Expand Down

0 comments on commit 1662b71

Please sign in to comment.