Skip to content

Why separate struct - ibase_result? #80

@mlazdans

Description

@mlazdans

Does anyone remember what was main idea behind creating separate ibase_result struct? Why not just store everything in ibase_query struct? By removing ibase_result struct this could:

  • get rid of two structs -ibase_result, ibase_statement
  • get rid of two resource types - le_statement, le_result + extra constructors / destructors
  • remove copying of in_sqlda, out_sqlda fields for each call to _php_ibase_exec()
  • remove freeing / allocating ibase_result structs so no need to worry about ibase_free_result(). That memory just would be reused on another ibase_fetch_*() call or freed with ibase_free_query()

Do I miss something obvious here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions