P
pnstarr
Hi everybody,
I've got a script that works perfectly when called from the command
prompt. It collects data from online databases, processes it, and
prints. I'm trying to use it in a web site, where the input is from an
html form. But not all the data I want is printed into the newly
created html page and the error log says that there is an attribute
parameter problem in one of the methods called in the script.
Here is the error from the error log:
[error] [client 127.0.0.1] DBI::st=HASH(0x89628a4)->bind_param(...):
attribute parameter '12' is not a hash ref at
/home/pns7/src/ensembl/modules//Bio/EnsEMBL/DBSQL/SliceAdaptor.pm line
246.
Here is the SliceAdaptor.pm code line:
246 $sth->bind_param(1, "$seq_region_name", SQL_VARCHAR);
And bind_param( ) evidently has the following definitions according to
O'Reilly's Programming the Perl DBI:
bind_param($p_num, $bind_value)
bind_param($p_num, $bind_value, \%attr)
bind_param($p_num, $bind_value, $bind_type)
SQL_VARCHAR does have the value '12' and is not a hash reference, but
why does this matter since SQL_VARCHAR is a bind_type variable?
Moreover, why does the method fail here but work when the script is run
from the command prompt?
Can somebody please help? Thanks,
Peter
I've got a script that works perfectly when called from the command
prompt. It collects data from online databases, processes it, and
prints. I'm trying to use it in a web site, where the input is from an
html form. But not all the data I want is printed into the newly
created html page and the error log says that there is an attribute
parameter problem in one of the methods called in the script.
Here is the error from the error log:
[error] [client 127.0.0.1] DBI::st=HASH(0x89628a4)->bind_param(...):
attribute parameter '12' is not a hash ref at
/home/pns7/src/ensembl/modules//Bio/EnsEMBL/DBSQL/SliceAdaptor.pm line
246.
Here is the SliceAdaptor.pm code line:
246 $sth->bind_param(1, "$seq_region_name", SQL_VARCHAR);
And bind_param( ) evidently has the following definitions according to
O'Reilly's Programming the Perl DBI:
bind_param($p_num, $bind_value)
bind_param($p_num, $bind_value, \%attr)
bind_param($p_num, $bind_value, $bind_type)
SQL_VARCHAR does have the value '12' and is not a hash reference, but
why does this matter since SQL_VARCHAR is a bind_type variable?
Moreover, why does the method fail here but work when the script is run
from the command prompt?
Can somebody please help? Thanks,
Peter