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

[Perl]Return values of nullable are not correct.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Perl-8.4.1
    • 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: Return values of nullable are not correct.

      Repro Steps:
      perl nullable_02.pl

      statements in nullable_02.pl:
      $dbh -> do("create table coo(id int not null primary key auto_increment,col4 bit(8), phone int );")
      $dbh->do("insert into coo values(NULL,b'0011', 1234);") or die "insert error: $dbh->errstr";

      my $sth=$dbh->prepare("select * from coo") or die "prepare error: $dbh->errstr";
      $sth->execute() or die "execute error: $dbh->errstr";
      my $fieldNumber=$sth->

      {NUM_OF_FIELDS}

      ;
      print "Number of field is $fieldNumber\n";

      for (my $i=0;$i<$fieldNumber; $i++){
      print "name: $sth->

      {NAME}

      ->[$i]\n";
      print "nullable: $sth->

      {NULLABLE}

      ->[$i]\n\n\n";
      }

      Actual result:

      Number of field is 3
      name: id
      nullable: 0
      
      
      name: col4
      nullable: 8
      
      
      name: phone
      nullable: 0
      

      Expect result:

      Number of field is 3
      name: id
      nullable: 
      
      
      name: col4
      nullable: 1
      
      
      name: phone
      nullable: 1
      
      1. APIS-70_FIX01.creview
        5 kB
        张慧
      2. nullable_02.pl
        1 kB
        ZouJing

        Activity

        Hide
        hellohuizhang 张慧 added a comment -

        Commit rev: 334

        Show
        hellohuizhang 张慧 added a comment - Commit rev: 334
        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: