Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: DBI.pm: composing and debugging MySql placeholders

by LanX (Sage)
on Oct 13, 2015 at 17:41 UTC ( #1144728=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
       local $sth->{TraceLevel} = "2|SQL";
       $rv = $sth->execute(@args)
         or die $sth->errstr;
    }
    
  2. or download this
        DBI::st=HASH(0x2910b18) trace level set to 0x100/2 (DBI @ 0x0/0) i
    +n DBI 1.623-ithread (pid 7420)
        -> execute for DBD::mysql::st (DBI::st=HASH(0x2910ab8)~0x2910b18 '
    +xLangsdorf') thr#309f18
    ...
            -> dbd_st_STORE_attrib for 02497600, key TraceLevel
            <- dbd_st_STORE_attrib for 02497600, result 0
        <- STORE= ( 1 ) [1 items] at placeholder.pl line 56
    
  3. or download this
       open my $trace_fh, ">", \ my $trace_out;
       
    ...
       $rv = $sth->execute(@args)
         or die parse($trace_out) . "\n" .$sth->errstr;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1144728]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2023-01-30 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?