Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-590

The Callback function is not invoked on "connect"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Perl-Aprium
    • Fix Version/s: Perl 9.1.0.0002
    • Component/s: Perl Driver
    • Labels:
      None
    • Environment:

      DBD::cubrid module v9.1.0.0001
      CUBRID Server v9.1.0

      Description

      Originally reported at http://www.cubrid.org/694738.

      Hi,

      Similar to the HandleError problem (#APIS-585), also using the DBD::cubrid module v9.1.0.0001 and server v9.1.0, here is a short test:

      {code}
      #!/bin/env perl

      use strict;
      use warnings;
      use DBI;

      my $dbname = 'demodb';
      my $user = 'user';
      my $pass = 'pass';

      my $dsn = qq{dbi:cubrid:database=$dbname;host=localhost;port=33000};

      my $dbh = DBI->connect(
      $dsn, $user, $pass,
      { AutoCommit => 1,
      RaiseError => 1,
      PrintError => 1,
      Callbacks => {
      connected => sub { print "*** Connected! *** "; return; },
      },
      }
      ) or die $DBI::errstr;{code}

      This is supposed to print "*** Connected! ***", but the callback is not invoked. (It works with other drivers, for example DBD::Pg).

      Thank you.
      Regards,
      Stefan.

        Issue Links

          Activity

          Hide
          cn15800 谢韦华[Bert] added a comment -

          The reason of this issue is same with APIS-585

          Show
          cn15800 谢韦华[Bert] added a comment - The reason of this issue is same with APIS-585

            People

            • Assignee:
              cn15800 谢韦华[Bert]
              Reporter:
              kadishmal Esen Sagynov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: