forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2c22afa
committed
hash_any returns Datum, not uint32 (and definitely not "int").
The coding in JsonbHashScalarValue might have accidentally failed to failgiven current representational choices, but the key word there would be"accidental". Insert the appropriate datatype conversion macro. Anduse the right conversion macro for hash_numeric's result, too.In passing make the code a bit cleaner and less repetitive by factoringout the xor step from the switch.1 parent35c0cd3 commit2c22afa
1 file changed
+23
-20
lines changedLines changed: 23 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1114 | 1114 |
| |
1115 | 1115 |
| |
1116 | 1116 |
| |
1117 |
| - | |
| 1117 | + | |
1118 | 1118 |
| |
1119 | 1119 |
| |
1120 | 1120 |
| |
| |||
1123 | 1123 |
| |
1124 | 1124 |
| |
1125 | 1125 |
| |
1126 |
| - | |
| 1126 | + | |
1127 | 1127 |
| |
1128 |
| - | |
1129 |
| - | |
1130 |
| - | |
1131 |
| - | |
1132 |
| - | |
1133 |
| - | |
| 1128 | + | |
1134 | 1129 |
| |
1135 | 1130 |
| |
1136 | 1131 |
| |
1137 |
| - | |
1138 |
| - | |
| 1132 | + | |
| 1133 | + | |
1139 | 1134 |
| |
1140 |
| - | |
1141 |
| - | |
1142 |
| - | |
1143 |
| - | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1144 | 1138 |
| |
1145 |
| - | |
1146 |
| - | |
| 1139 | + | |
| 1140 | + | |
1147 | 1141 |
| |
1148 |
| - | |
1149 |
| - | |
| 1142 | + | |
1150 | 1143 |
| |
1151 |
| - | |
1152 |
| - | |
| 1144 | + | |
| 1145 | + | |
1153 | 1146 |
| |
1154 | 1147 |
| |
| 1148 | + | |
| 1149 | + | |
1155 | 1150 |
| |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1156 | 1159 |
| |
1157 | 1160 |
| |
1158 | 1161 |
| |
|
0 commit comments
Comments
(0)