Changeset 32585
- Timestamp:
- 2018-11-08T17:44:19+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/gssql.pm
r32584 r32585 43 43 44 44 # TODO: drop table if exists and create table if exists are available in MySQL. Use those cmds 45 # instead of always first checking for existence ourselves? 45 # instead of always first checking for existence ourselves? Only when subclassing to specific 46 # mysql class. 46 47 ############################## 47 48 … … 139 140 sub DESTROY { 140 141 my $self = shift; 141 142 142 143 if (${^GLOBAL_PHASE} eq 'DESTRUCT') { 143 144 … … 165 166 return; 166 167 } 168 169 # "Always include a call to $self->SUPER::DESTROY in our destructors (even if we don't yet have any base/parent classes). (p. 145)" 170 # Superclass and destroy, call to SUPER: https://www.perlmonks.org/?node_id=879920 171 # also covers multiple-inheritance (MI) 172 $self->SUPER::DESTROY if $self->can("SUPER::DESTROY"); 167 173 168 174 }
Note:
See TracChangeset
for help on using the changeset viewer.