forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit478cacb
committed
Ensure consistent name matching behavior in processSQLNamePattern().
Prior to v12, if you used a collation-sensitive regex feature in apattern handled by processSQLNamePattern() (for instance, \d '\\w+'in psql), the behavior you got matched the database's default collation.Since commit586b98f you'd usually get C-collation behavior, becausethe catalog "name"-type columns are now marked as COLLATE "C". Addexplicit COLLATE specifications to restore the prior behavior.(Note for whoever writes the v12 release notes: the need for this showsthat while586b98f preserved pre-v12 behavior of "name" columns forsimple comparison operators, it changed the behavior of regex operatorson those columns. Although this patch fixes it for pattern matchesgenerated by our own tools, user-written queries will still be affected.So we'd better mention this issue as a compatibility item.)Daniel VéritéDiscussion:https://postgr.es/m/701e51f0-0ec0-4e70-a365-1958d66dd8d2@manitou-mail.org1 parent86cc06d commit478cacb
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
956 | 956 |
| |
957 | 957 |
| |
958 | 958 |
| |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
959 | 965 |
| |
960 | 966 |
| |
961 | 967 |
| |
| |||
971 | 977 |
| |
972 | 978 |
| |
973 | 979 |
| |
| 980 | + | |
| 981 | + | |
974 | 982 |
| |
975 | 983 |
| |
976 | 984 |
| |
977 | 985 |
| |
| 986 | + | |
| 987 | + | |
978 | 988 |
| |
979 | 989 |
| |
980 | 990 |
| |
981 | 991 |
| |
982 | 992 |
| |
983 | 993 |
| |
| 994 | + | |
| 995 | + | |
984 | 996 |
| |
985 | 997 |
| |
986 | 998 |
| |
| |||
997 | 1009 |
| |
998 | 1010 |
| |
999 | 1011 |
| |
| 1012 | + | |
| 1013 | + | |
1000 | 1014 |
| |
1001 | 1015 |
| |
1002 | 1016 |
| |
|
0 commit comments
Comments
(0)