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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to