perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Brooks <db...@ravenwerkes.biz>
Subject DBIx::Recordset error message
Date Fri, 12 Dec 2003 14:11:28 GMT
I've been using DBIx::Recordset for a while now, and it's been great. 
However, just the other day I started adding some new functionality to 
my program, and I've started getting this error message:

[Fri Dec 12 09:06:29 2003] [error] [client 4.63.107.173] Premature end 
of script headers: purchase.pl
[Fri Dec 12 09:06:29 2003] [error] [client 4.63.107.173] [Fri Dec 12 
09:06:29 2003] purchase.pl: Error executing run mode 'add_item': 
DBD::ChurlPg only knows about the pg_type attribute at 
/usr/lib/perl5/site_perl/5.8.0/DBIx/Database.pm line 148.

The code in question seems to be the following:
                                                                               

    *set = DBIx::Recordset->Insert({'!DataSource'=> $db,
                                    '!Table' => 'purchase_orders',
                                    '!Serial' => 'order_id',
                                    '!Sequence' => 
'purchase_orders_order_id_seq',
                                    'order_date' => $t->strftime(),
                                   }) or die DBIx::Recordset->LastError();

This is just a straightforward ecom type site, and every other part of 
it works just fine. If I comment out this query and put in something 
else, it also fails with a similar error, usually this:

[Fri Dec 12 08:52:46 2003] [error] [client 4.63.107.173] Premature end 
of script headers: purchase.pl
[Fri Dec 12 08:52:46 2003] [error] [client 4.63.107.173] [Fri Dec 12 
08:52:46 2003] purchase.pl: Error executing run mode 'add_item': Cannot 
specify both sql_type and pg_type at 
/usr/lib/perl5/site_perl/5.8.0/DBIx/Database.pm line 148.


Anyone know what's going on?

db48x

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message