diff options
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/checksetup.pl b/checksetup.pl index 7f207faf4..e21600ebf 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -3210,10 +3210,9 @@ if ($dbh->bz_table_info("attachstatuses") print "Converting attachment statuses to flags...\n"; # Get IDs for the old attachment status and new flag fields. - $sth = $dbh->prepare("SELECT fieldid FROM fielddefs " . - "WHERE name='attachstatusdefs.name'"); - $sth->execute(); - my $old_field_id = $sth->fetchrow_arrayref()->[0] || 0; + my ($old_field_id) = $dbh->selectrow_array( + "SELECT fieldid FROM fielddefs WHERE name='attachstatusdefs.name'") + || 0; $sth = $dbh->prepare("SELECT fieldid FROM fielddefs " . "WHERE name='flagtypes.name'"); |