forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitde4026c
committed
Use heap_modify_tuple not SPI_modifytuple in pl/python triggers.
The code here would need some change anyway given planned change inSPI_modifytuple semantics, since this executes after we've exited theSPI environment. But really it's better to just use heap_modify_tuple.While at it, normalize use of SPI_fnumber: make error messages distinguishno-such-column from can't-set-system-column, and remove test for deletedcolumn which is going to migrate into SPI_fnumber. The lack of a checkfor system column names is actually a pre-existing bug here, and mighteven qualify as a security bug except that we don't have any trustedversion of plpython.1 parent0d44460 commitde4026c
1 file changed
+41
-45
lines changedLines changed: 41 additions & 45 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
896 | 896 |
| |
897 | 897 |
| |
898 | 898 |
| |
| 899 | + | |
899 | 900 |
| |
900 | 901 |
| |
901 | 902 |
| |
902 |
| - | |
903 |
| - | |
904 |
| - | |
905 |
| - | |
906 |
| - | |
907 |
| - | |
908 | 903 |
| |
909 |
| - | |
910 |
| - | |
| 904 | + | |
| 905 | + | |
911 | 906 |
| |
912 | 907 |
| |
913 | 908 |
| |
914 | 909 |
| |
915 | 910 |
| |
916 | 911 |
| |
917 | 912 |
| |
918 |
| - | |
919 | 913 |
| |
920 | 914 |
| |
| 915 | + | |
921 | 916 |
| |
922 | 917 |
| |
923 | 918 |
| |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
924 | 923 |
| |
925 | 924 |
| |
926 | 925 |
| |
| |||
932 | 931 |
| |
933 | 932 |
| |
934 | 933 |
| |
935 |
| - | |
936 |
| - | |
937 |
| - | |
938 |
| - | |
939 |
| - | |
| 934 | + | |
940 | 935 |
| |
941 | 936 |
| |
942 | 937 |
| |
943 |
| - | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
944 | 943 |
| |
945 | 944 |
| |
946 | 945 |
| |
| 946 | + | |
| 947 | + | |
947 | 948 |
| |
948 | 949 |
| |
949 | 950 |
| |
| |||
963 | 964 |
| |
964 | 965 |
| |
965 | 966 |
| |
966 |
| - | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
967 | 973 |
| |
968 | 974 |
| |
969 | 975 |
| |
970 | 976 |
| |
971 | 977 |
| |
972 | 978 |
| |
973 | 979 |
| |
974 |
| - | |
975 |
| - | |
976 |
| - | |
977 |
| - | |
978 |
| - | |
979 |
| - | |
980 |
| - | |
981 |
| - | |
| 980 | + | |
982 | 981 |
| |
983 |
| - | |
984 |
| - | |
985 |
| - | |
986 |
| - | |
987 |
| - | |
988 |
| - | |
989 |
| - | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
990 | 988 |
| |
991 | 989 |
| |
992 | 990 |
| |
993 |
| - | |
994 |
| - | |
| 991 | + | |
| 992 | + | |
995 | 993 |
| |
996 |
| - | |
997 |
| - | |
998 |
| - | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
999 | 997 |
| |
| 998 | + | |
1000 | 999 |
| |
1001 | 1000 |
| |
1002 | 1001 |
| |
1003 | 1002 |
| |
1004 | 1003 |
| |
1005 |
| - | |
1006 |
| - | |
1007 |
| - | |
1008 |
| - | |
| 1004 | + | |
1009 | 1005 |
| |
1010 | 1006 |
| |
1011 | 1007 |
| |
1012 | 1008 |
| |
1013 | 1009 |
| |
1014 | 1010 |
| |
1015 | 1011 |
| |
1016 |
| - | |
1017 |
| - | |
1018 | 1012 |
| |
1019 | 1013 |
| |
1020 |
| - | |
1021 |
| - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1022 | 1018 |
| |
1023 | 1019 |
| |
1024 | 1020 |
| |
| |||
1027 | 1023 |
| |
1028 | 1024 |
| |
1029 | 1025 |
| |
1030 |
| - | |
1031 | 1026 |
| |
1032 | 1027 |
| |
| 1028 | + | |
1033 | 1029 |
| |
1034 | 1030 |
| |
1035 | 1031 |
| |
|
0 commit comments
Comments
(0)