Skip to content

Commit 1662b71

Browse files
author
zhangming
committed
update-sql
1 parent 77b7961 commit 1662b71

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

store/postgresql/namespace.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,7 @@ func rlockNamespace(queryRow func(query string, args ...interface{}) *sql.Row, n
268268
// genNamespaceSelectSQL 生成namespace的查询语句
269269
func genNamespaceSelectSQL() string {
270270
str := `
271-
SELECT name, COALESCE(comment, '') AS comment, token,
272-
owner, flag, EXTRACT(EPOCH FROM ctime) AS ctime,
273-
EXTRACT(EPOCH FROM mtime) AS mtime,
274-
COALESCE(service_export_to, '{}'::json) AS service_export_to
275-
FROM namespace
271+
SELECT name, comment, token, owner, flag, ctime, mtime, service_export_to FROM namespace
276272
`
277273
return str
278274
}

0 commit comments

Comments
 (0)