Skip to content

system/Database/BaseConnection.php Change in getFieldNames() method #164

Description

@Portaflex

After this:

public function getFieldNames($table)
    {
        // Is there a cached result?
        if (isset($this->dataCache['field_names'][$table]))
        {
            return $this->dataCache['field_names'][$table];
        }
        //... rest of the funcion ...//

We have to call $this->initialize() again:

public function getFieldNames($table)
    {
        // Is there a cached result?
        if (isset($this->dataCache['field_names'][$table]))
        {
            return $this->dataCache['field_names'][$table];
        }
        if (empty($this->connID))
        {
            $this->initialize();
        }
               //... rest of the function ...//

As you know, I'm not proficient in making pullrequest. ;-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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