Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: typo (#2428)

Danny Xu9bc0b08536a5
diff --git a/plugin/db/pg/sync.go b/plugin/db/pg/sync.go
index 912dcbf7ad..e7c5c42dfc 100644
--- a/plugin/db/pg/sync.go
+++ b/plugin/db/pg/sync.go
@@ -270,7 +270,7 @@ func (driver *Driver) getUserList(ctx context.Context) ([]db.User, error) {
for rows.Next() {
var role string
var super, inherit, createRole, createDB, canLogin, replication, bypassRLS bool
- var rolValidUtil sql.NullString
+ var rolValidUntil sql.NullString
if err := rows.Scan(
&role,
&super,
@@ -279,7 +279,7 @@ func (driver *Driver) getUserList(ctx context.Context) ([]db.User, error) {
&createDB,
&canLogin,
&replication,
- &rolValidUtil,
+ &rolValidUntil,
&bypassRLS,
); err != nil {
return nil, err
@@ -304,8 +304,8 @@ func (driver *Driver) getUserList(ctx context.Context) ([]db.User, error) {
if replication {
attributes = append(attributes, "Replication")
}
- if rolValidUtil.Valid {
- attributes = append(attributes, fmt.Sprintf("Password valid until %s", rolValidUtil.String))
+ if rolValidUntil.Valid {
+ attributes = append(attributes, fmt.Sprintf("Password valid until %s", rolValidUntil.String))
}
if bypassRLS {
attributes = append(attributes, "Bypass RLS+")