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

[PHP]Unify the request resource registered in cubrid_execute, cubrid_query and cubrid_unbuffered_query

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PHP-8.4.1, PHP-Apricot
    • Component/s: PHP Driver
    • Labels:
      None

      Description

      Though the implements of cubrid_execute , cubrid_query and cubrid_unbuffered_query are different, there are also some problems that these three functions all need to consider, such as when should the request resource be registered. Now we can find these three functions have their own opinions on this question from the source code. This problem will be also be encountered in cubrid_prepare.

      Therefore, we need to unify them referenced to the following aspects:

      1. We should register the request resource when the related objects are ready.
      2. In cubrid_prepare we should register the request resource after cci_prepare.
      3. In cubrid_execute, cubrid_query and cubrid_unbuffered_query we should register the request resource after cci_get_result_info.

        Activity

        Hide
        hellohuizhang 张慧 added a comment -

        Commit rev on PHP-Apricot: 529

        Show
        hellohuizhang 张慧 added a comment - Commit rev on PHP-Apricot: 529
        Hide
        hellohuizhang 张慧 added a comment -

        Commit rev on PHP-8.4.1: 530

        Show
        hellohuizhang 张慧 added a comment - Commit rev on PHP-8.4.1: 530

          People

          • Assignee:
            hellohuizhang 张慧
            Reporter:
            hellohuizhang 张慧
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: