Skip to content

Call to a member function save() on null #119

Open
@rvaldebenito35

Description

@rvaldebenito35

Hi! I'm just getting following error after executing a store procedure... Call to a member function save() on null on line \vendor\yajra\laravel-pdo-via-oci8\src\Pdo\Oci8\Statement.php:735

// Save blob objects if set.
if ($result && count($this->blobObjects) > 0) {
    foreach ($this->blobObjects as $param => $blob) {
        /* @var OCILob $blob */
        $blob->save($this->blobBindings[$param]);
    }
}

It's happening when the param is set but the output retrieved is empty... It looks like is missing a isset before save...
I reported in case someone else has the same issue...

// Save blob objects if set.
if ($result && count($this->blobObjects) > 0) {
    foreach ($this->blobObjects as $param => $blob) {
        /* @var OCILob $blob */
        if(isset($this->blobBindings[$param])){
            $blob->save($this->blobBindings[$param]);
        }
    }
}
  • Operating System
  • PHP Version 8.0.8
  • PDO-VIA-OCI8 Version "v9.0.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions