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

[Perl]Error doesn't appear when binding an error type to cubrid_lob_import method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Perl Driver
    • Labels:
      None

      Description

      Test Build:CUBRID 2008 R4.0 (8.4.0.2019) (64bit release build for linux_gnu)
      OS: Linux 64
      Description: Error doesn't appear when binding an error type to cubrid_lob_import method

      Repro Steps
      perl import_2.pl

      statements in import_2.pl:
      my $sth=$dbh->prepare("insert into import_1 values(?,?);") or die "prepare error: $dbh->errstr";
      $sth->bind_param (1, 1) or die "bind_param error: $dbh->errstr";
      my $importValue=$sth->cubrid_lob_import (2, "import1.txt", DBI::SQL_TIME) or die $dbh->errstr . " cubrid_lob_import error\n";

      Actual result:

      no error;
      this record was inserted into database;
      
      csql -udba demodb;
      csql> select * from import_1;
      
      === <Result of SELECT Command in Line 1> ===
      
        doc_id                content             
      ============================================
        '1'                   file:/home/perl/CUBRID/databases/pldb/lob/ces_257/import_1.00001326245606685734_8184
      

      Expect result:

      errror appear;
      this record wasn't successfully inserted into database
      
      
      1. APIS-78_FIX01.creview
        16 kB
        张慧
      2. APIS-78_FIX02.creview
        16 kB
        张慧
      3. import_2.pl
        1 kB
        ZouJing
      4. import1.txt
        0.0 kB
        ZouJing

        Activity

        Hide
        hellohuizhang 张慧 added a comment -

        Commit rev: 349

        Show
        hellohuizhang 张慧 added a comment - Commit rev: 349
        Hide
        hellohuizhang 张慧 added a comment -

        APIS-78_FIX02.creview commit rev: 351

        Show
        hellohuizhang 张慧 added a comment - APIS-78 _FIX02.creview commit rev: 351
        Hide
        zoujing ZouJing added a comment -

        Test build : CUBRID 2008 R4.0 (8.4.0.2019)
        OS: Linux 64bit
        Test Result: PASS
        so i close it

        Show
        zoujing ZouJing added a comment - Test build : CUBRID 2008 R4.0 (8.4.0.2019) OS: Linux 64bit Test Result: PASS so i close it

          People

          • Assignee:
            zoujing ZouJing
            Reporter:
            zoujing ZouJing
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: