fix relation case sensitive when inside quotes

This commit is contained in:
mars 2022-10-12 13:15:03 +08:00
parent bd58520020
commit c5e5887e1a
1 changed files with 3 additions and 1 deletions

View File

@ -771,7 +771,9 @@ var (
postgresQuoter = schemas.Quoter{ postgresQuoter = schemas.Quoter{
Prefix: '"', Prefix: '"',
Suffix: '"', Suffix: '"',
IsReserved: schemas.AlwaysReserve, IsReserved: func(s string) bool {
return postgresReservedWords[strings.ToUpper(s)]
},
} }
) )