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

[PHP] cubrid_schema when no parameter for class_name return none

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: PHP-Apricot
    • Fix Version/s: PHP-Aprium
    • Component/s: PHP Driver
    • Labels:
    • Environment:

      Linux NC-PL-QA030 2.6.18-194.el5xen #1 SMP Fri Apr 2 15:34:40 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

      Description

      [PHP] cubrid_schema when no parameter for class_name return none
      Case Path: php/_01_schema/schema_11.phpt
      Test verion:

      Cubrid: CUBRID 9.0 (9.0.0.0455)
      PHP Driver: 
      http://svn.cubrid.org/cubridapis/php/branches/RB-9.0.0 Revision: 867
      

      codes:

      printf("no parameter for class_name\n");
      $trriger2= cubrid_schema($conn,CUBRID_SCH_TRIGGER);
      var_dump($trriger2);
      
      

      result:

      no parameter for class_name
      array(0) {
      }
      

      I think this method should return all the triggers' schema

      1. APIS-353_FIX01.creview
        73 kB
        李金虎
      2. schema_11.phpt
        5 kB
        欧明宝[Bom Owen]
      3. test_schema_info_cursor_err.c
        5 kB
        李金虎

        Activity

        Hide
        jinhu 李金虎 added a comment -

        Add the support of cubrid_schema() to query all triggers with CUBRID_SCH_TRIGGER type when the tablename is null.

        However, the cci_cursor() in CCI has a problem. cci_cursor() return the 0 when there is no more data.
        The "test_schema_info_cursor_err.c" is the test case for this problem.
        Please register a CCI bug.

        Show
        jinhu 李金虎 added a comment - Add the support of cubrid_schema() to query all triggers with CUBRID_SCH_TRIGGER type when the tablename is null. However, the cci_cursor() in CCI has a problem. cci_cursor() return the 0 when there is no more data. The "test_schema_info_cursor_err.c" is the test case for this problem. Please register a CCI bug.
        Show
        zoujing ZouJing added a comment - CCI ISSUE http://bts4.nhncorp.com/nhnbts/browse/CUBRIDSUS-9438
        Hide
        cn14130 欧明宝[Bom Owen] added a comment -

        Test Build: 9.1.0.0206
        Test OS: linux 64
        php driver: 9.1.0.0001 Revision: 1582
        Test Result: pass

        Show
        cn14130 欧明宝[Bom Owen] added a comment - Test Build: 9.1.0.0206 Test OS: linux 64 php driver: 9.1.0.0001 Revision: 1582 Test Result: pass

          People

          • Assignee:
            cn14130 欧明宝[Bom Owen]
            Reporter:
            cn14130 欧明宝[Bom Owen]
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 2 days
              2d
              Remaining:
              Remaining Estimate - 2 days
              2d
              Logged:
              Time Spent - Not Specified
              Not Specified