Changeset 324 for wiki-toolkit/trunk/lib/Wiki/Toolkit/Store/Database.pm
- Timestamp:
- 06/06/06 18:12:20 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit/trunk/lib/Wiki/Toolkit/Store/Database.pm
r323 r324 343 343 $sth->execute( $args{name} ); 344 344 my $found_name = $sth->fetchrow_array || ""; 345 $sth->finish; 345 346 return lc($found_name) eq lc($args{name}) ? 1 : 0; 346 347 } … … 712 713 $sth->execute($old_name); 713 714 my ($node_id) = $sth->fetchrow_array; 715 $sth->finish; 714 716 715 717 … … 855 857 $id_sth->execute($name); 856 858 my ($node_id) = $id_sth->fetchrow_array; 859 $id_sth->finish; 857 860 858 861 # Check what the current highest moderated version is … … 865 868 $hv_sth->execute($node_id, "1") or croak $dbh->errstr; 866 869 my ($highest_mod_version) = $hv_sth->fetchrow_array; 870 $hv_sth->finish; 867 871 unless($highest_mod_version) { $highest_mod_version = 0; } 868 872 … … 936 940 $id_sth->execute($name); 937 941 my ($node_id) = $id_sth->fetchrow_array; 942 $id_sth->finish; 938 943 939 944 # Mark it as requiring / not requiring moderation … … 986 991 $id_sth->execute($name); 987 992 my ($node_id) = $id_sth->fetchrow_array; 993 $id_sth->finish; 988 994 989 995 # Trivial case - delete the whole node and all its history. … … 1018 1024 $sth->execute() or croak "Deletion failed: " . $dbh->errstr; 1019 1025 my ($count) = $sth->fetchrow_array; 1026 $sth->finish; 1020 1027 if($count == 1) { 1021 1028 # Only one version, so can do the non version delete
