Re: Strange error when doing insert into DB



Hi,
Please give a look at below source code if this can help you:

package DBD::Oracle::db; # ====== DATABASE ======
use strict;

sub prepare {
my($dbh, $statement, @attribs)= @_;

# create a 'blank' sth

my $sth = DBI::_new_sth($dbh, {
'Statement' => $statement,
});

# Call Oracle OCI parse func in Oracle.xs file.
# and populate internal handle data.

DBD::Oracle::st::_prepare($sth, $statement, @attribs)
or return undef;

$sth;

Waiting for your help..Also wud like to know how i can add myself in this
list ..

Regards,
-Hemlata Lalwani

----- Original Message -----
From: "Scott T. Hildreth" <shildreth@xxxxxxxxxxxxxxx>
To: "Hemlata Lalwani" <hemlata.lalwani@xxxxxxxxxxxx>
Cc: <dbi-users@xxxxxxxx>
Sent: Monday, February 20, 2006 8:59 PM
Subject: RE: Strange error when doing insert into DB


On Mon, 2006-02-20 at 20:05 +0530, Hemlata Lalwani wrote:
Hi,
Iam also having the same problem..the piece of code is as
below:

I'm sorry I don't know what this is referring to?


DBD::Oracle::st::_prepare($sth, $statement, @attribs)
or return undef;

Are you coding it this way or is this coming from a trace?

Can you post some code?


would really appreciate if you help me..

I would like to help, but I need more info or code to look at.
Also I am cc the dbi-users list, this is where these questions
should be asked.

Also The error i got in my qmail logs is

Can't mix placeholder styles (:foo/:1) at

Well you can't, I would need to see the $statemnet in order to help.

/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/DBD/Oracle.pm
line
293.
Which i got when i insert the mail into databse..this mail actually
bouced back...

Regards,
-Hemlata Lalwani
Hemlata Lalwani | Linux Administrator ( Systems ) I Webdunia.Com
(India) Pvt Ltd | 582 MG Road Indore MP | Work +91-731-398-3426 |
Mobile +91-930-079-7948 I Fax +91-731-243-6615 | www.webdunia.net


--
Scott T. Hildreth <shildreth@xxxxxxxxxxxxxxx>


.



Relevant Pages