reverting erroneouse quoting : in show columns, the tablename must NOT be quoted (no prepare / execute)

This commit is contained in:
tipaul 2004-01-12 17:38:51 +00:00
parent 8f35b01588
commit cd64e488d1
1 changed files with 2 additions and 2 deletions

View File

@ -106,8 +106,8 @@ if ($op eq 'add_form') {
$fields{$kohafield}->{liblibrarian} = $liblibrarian;
}
#XXX: This might not work. Maybe should use a DBI call instead of SHOW COLUMNS
my $sth2=$dbh->prepare("SHOW COLUMNS from ?");
$sth2->execute($tablename);
my $sth2=$dbh->prepare("SHOW COLUMNS from $tablename");
$sth2->execute;
my $toggle="white";
my @loop_data = ();