forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit106f26a
committed
Avoid using atooid for numerical comparisons which arent Oids
The check for the number of roles in the target cluster for an upgradeselects the existing roles and performs a COUNT(*) over the result. Avalue of one is the expected query result value indicating that onlythe install user is present in the new cluster. The result was convertedwith the function for converting a string containing an Oid into a numeric,which avoids potential overflow but makes the code less readable sinceit's not actually an Oid at all.Discussion:https://postgr.es/m/41AB5F1F-4389-4B25-9668-5C430375836C@yesql.se1 parent4c8044c commit106f26a
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
568 | 568 |
| |
569 | 569 |
| |
570 | 570 |
| |
571 |
| - | |
| 571 | + | |
572 | 572 |
| |
573 | 573 |
| |
574 | 574 |
| |
|
0 commit comments
Comments
(0)