Skip to content

Commit 63f6e6c

Browse files
authored
[doctor] pq: syntax error at or near "." quote user table name (#19765)
1 parent 2c66bd8 commit 63f6e6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/doctor/dbconsistency.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) er
191191
"action", "repository", "action.repo_id=repository.id"),
192192
// find OAuth2Grant without existing user
193193
genericOrphanCheck("Orphaned OAuth2Grant without existing User",
194-
"oauth2_grant", "user", "oauth2_grant.user_id=user.id"),
194+
"oauth2_grant", "user", "oauth2_grant.user_id=`user`.id"),
195195
// find OAuth2Application without existing user
196196
genericOrphanCheck("Orphaned OAuth2Application without existing User",
197-
"oauth2_application", "user", "oauth2_application.uid=user.id"),
197+
"oauth2_application", "user", "oauth2_application.uid=`user`.id"),
198198
// find OAuth2AuthorizationCode without existing OAuth2Grant
199199
genericOrphanCheck("Orphaned OAuth2AuthorizationCode without existing OAuth2Grant",
200200
"oauth2_authorization_code", "oauth2_grant", "oauth2_authorization_code.grant_id=oauth2_grant.id"),

0 commit comments

Comments
 (0)