RE: Perl DBI::prepare Question. My head is sore from banging it against the wall. Can you help ease my pain?




THANKS. IT Works!!! Using "placeholders" solved the problem. I
will take this knowledge with me and move forward.

My head feels much better thanks to all.

- Tony :)

-----Original Message-----
From: Moon, John [mailto:John.Moon@xxxxxxxxxxxxxxxxx]
Sent: Thursday, November 29, 2007 11:57 AM
To: dbi-users@xxxxxxxx
Subject: RE: Perl DBI::prepare Question. My head is sore from banging it
against the wall. Can you help ease my pain?


-----Original Message-----
From: BAIER, ANTHONY (TONY), ATTSI [mailto:abaier@xxxxxxx]
Sent: Thursday, November 29, 2007 11:06 AM
To: STILWELL, DAVID B (DAVE), ATTLABS; dbi-users@xxxxxxxx
Subject: Perl DBI::prepare Question. My head is sore from banging it
against the wall. Can you help ease my pain?


Dave, DBI User Group,

[>>] ...

Issuing rollback() for database handle being DESTROY'd without explicit
disconn
ct(), <REPORTFILE> line 319.

[>>]
Well right off hand I don't see it but can suggest (from past
experience!) that you use placeholders ... or at the least change the
quote style... qq{insert ... some quoted '$string'}...

The placeholders made my life much easier...

Example...

$sql = 'insert ... values (?,?,?,?,?)'
....
$sth = $dbh->prepare($sql) or die DBI->errstr;
$rc = $sth->execute($reportId, $queryNumber,$readCount, $execCount,
$queryText);


Hope this gives you some ideas...

jwm

.



Relevant Pages

  • Re: MRI result
    ... my head, neck and back, ringing ears and dizziness. ... The MRI was taken in supine position. ... value only because the area of spasming muscles are ... where I have chronic pain. ...
    (alt.med.fibromyalgia)
  • "Uglys" story (TW) Re: BAH! Stupid moron.
    ... He was also missing one ear on the same ... the sores covering his head, neck, even his shoulders with thick, ... Even in the greatest pain, ... that moment I thought Ugly was the most beautiful, ...
    (rec.pets.cats.anecdotes)
  • Re: "Uglys" story (TW) Re: BAH! Stupid moron.
    ... He was also missing one ear on the same side, his left foot appeared to have been badly broken at one time, and had healed at an unnatural angle, making him look like he was always turning the corner. ... Ugly would have been a dark gray tabby, striped-type, except for the sores covering his head, neck, even his shoulders with thick, yellowing scabs. ... Even in the greatest pain, that ugly battle-scarred cat was asking only for a little affection, perhaps some compassion. ...
    (rec.pets.cats.anecdotes)
  • Re: Is pain instructive?
    ... and Davis Love only I was keeping my head to still and not picking it up ... Or you may develop acute or even chronic joint pain. ... > of what is referred to as the "Reverse C" finish. ... So the pain that many golfers feel after a round, ...
    (rec.sport.golf)
  • Re: Self defence
    ... >clearly not sexual assault or mugging, he'd been shouting insults ... raising it above his head ready to smash it against me. ... >at my friend because he'd supposedly heard him make a derogatory ... then a nearby brick wall can be a good weapon. ...
    (uk.legal)