Skip to content

Commit fe94585

Browse files
authored
[doctor] pq: syntax error at or near "." quote user table name (#19765) (#19770)
Backport #19765
1 parent 57e8163 commit fe94585

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
@@ -188,10 +188,10 @@ func checkDBConsistency(logger log.Logger, autofix bool) error {
188188
"action", "repository", "action.repo_id=repository.id"),
189189
// find OAuth2Grant without existing user
190190
genericOrphanCheck("Orphaned OAuth2Grant without existing User",
191-
"oauth2_grant", "user", "oauth2_grant.user_id=user.id"),
191+
"oauth2_grant", "user", "oauth2_grant.user_id=`user`.id"),
192192
// find OAuth2Application without existing user
193193
genericOrphanCheck("Orphaned OAuth2Application without existing User",
194-
"oauth2_application", "user", "oauth2_application.uid=user.id"),
194+
"oauth2_application", "user", "oauth2_application.uid=`user`.id"),
195195
// find OAuth2AuthorizationCode without existing OAuth2Grant
196196
genericOrphanCheck("Orphaned OAuth2AuthorizationCode without existing OAuth2Grant",
197197
"oauth2_authorization_code", "oauth2_grant", "oauth2_authorization_code.grant_id=oauth2_grant.id"),

0 commit comments

Comments
 (0)