Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Shared DBI handle supporting threads and processes

by erix (Prior)
on Apr 13, 2020 at 05:36 UTC ( #11115419=note: print w/replies, xml ) Need Help??

in reply to Shared DBI handle supporting threads and processes

my $ins_sql = ... my $sel_sql = ...

Imho, SELECT and INSERT are not all that interesting. UPDATE is more of a challenge.

Replies are listed 'Best First'.
Re^2: Shared DBI handle supporting threads and processes
by marioroy (Parson) on Apr 13, 2020 at 07:20 UTC

    Greetings erix. I updated the example by adding the missing 'do' method to the shared class. Also, updating a record.

      Thanks for the example. I ran it, and the DB was populated, but the code ended in the error:
      Bizarre copy of ARRAY in list assignment at C:/Users/USERNAME/eclipse- +workspace/.metadata/.plugins/org.epic.debug/ line 6548, <__ +ANONIO__> line 4. END failed--call queue aborted, <__ANONIO__> line 4. at C:/Users/USERNAME/eclipse-workspace/PROJECT/ line +0, <__ANONIO__> line 4.
      So I opened, and line 6548 reads:
      ... sub _dump_trace_calc_saved_single_arg { my ($nothard, $arg) = @_; # <-- LINE 6548 my $type; if ( not defined $arg ) { # undefined parameter return "undef"; } ...
      Any ideas?

        You seem to be running the code not only with the perldebuger but inside the Eclipse IDE too.

        - Ron

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2023-03-31 09:22 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (75 votes). Check out past polls.