[perl5-dbi/dbi] dbadce: Add the `connect_cached.connected` callback.

Tim Bunce <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <52264d8531122_24c692bd5010447e1@hookshot-fe5-pe1-prd.aws.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/perl5-dbi/dbi
  Commit: dbadce943a501a39668b58eb52227c23851690bf
      https://github.com/perl5-dbi/dbi/commit/dbadce943a501a39668b58eb52227c23851690bf
  Author: David E. Wheeler <[email protected]>
  Date:   2013-09-03 (Tue, 03 Sep 2013)

  Changed paths:
    M DBI.pm
    M t/70callbacks.t

  Log Message:
  -----------
  Add the `connect_cached.connected` callback.

It is only called for new connections, right after they connect. This is
because the `connected()` method is not called, for whatever reason.


  Commit: 60c2ee3965912dfc0faaa6d4265a16e4362da6a6
      https://github.com/perl5-dbi/dbi/commit/60c2ee3965912dfc0faaa6d4265a16e4362da6a6
  Author: David E. Wheeler <[email protected]>
  Date:   2013-09-03 (Tue, 03 Sep 2013)

  Changed paths:
    M DBI.pm

  Log Message:
  -----------
  Note the reason for connect_cached.connected.

It is to do something after a new connection is made. One can use a
`connected` callback, but that's called for both new and reused connections,
which is probably not desirable.


  Commit: 1ca8130571de3d35b6eec83a22e3e47cfc808138
      https://github.com/perl5-dbi/dbi/commit/1ca8130571de3d35b6eec83a22e3e47cfc808138
  Author: Tim Bunce <[email protected]>
  Date:   2013-09-03 (Tue, 03 Sep 2013)

  Changed paths:
    M Changes
    M DBI.pm
    M t/70callbacks.t

  Log Message:
  -----------
  Added connect_cached.connected Callback PR#3 [David E. Wheeler]

Merge remote-tracking branch 'origin/pr/3'


Compare: https://github.com/perl5-dbi/dbi/compare/d157cf06670f...1ca8130571de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.