- Notifications
You must be signed in to change notification settings - Fork28
Commit54dacc7
committed
Make PostgresNode easily subclassable
This module becomes much more useful if we allow it to be used as baseclass for external projects. To achieve this, change the exportedget_new_node function into a class method instead, and use the standardPerl idiom of accepting the class as first argument. This method worksas expected for subclasses. The standalone function is kept forbackwards compatibility, though it could be removed in pg11.Author: Chap Flackman, based on an earlier patch from Craig RingerDiscussion:https://postgr.es/m/CAMsr+YF8kO+4+K-_U4PtN==2FndJ+5Bn6A19XHhMiBykEwv0wA@mail.gmail.com1 parent9915de6 commit54dacc7
2 files changed
+13
-9
lines changedLines changed: 12 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
855 | 855 |
| |
856 | 856 |
| |
857 | 857 |
| |
858 |
| - | |
| 858 | + | |
859 | 859 |
| |
860 |
| - | |
861 |
| - | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
862 | 864 |
| |
863 |
| - | |
864 |
| - | |
| 865 | + | |
865 | 866 |
| |
866 |
| - | |
| 867 | + | |
| 868 | + | |
867 | 869 |
| |
868 | 870 |
| |
869 | 871 |
| |
870 | 872 |
| |
871 | 873 |
| |
| 874 | + | |
| 875 | + | |
872 | 876 |
| |
873 | 877 |
| |
874 | 878 |
| |
| |||
913 | 917 |
| |
914 | 918 |
| |
915 | 919 |
| |
916 |
| - | |
| 920 | + | |
917 | 921 |
| |
918 | 922 |
| |
919 | 923 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
|
0 commit comments
Comments
(0)