CodeIgniter Forums

Full Version: Result is a resource, not a strong
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Regarding this code in Session_database_driver.php


Code:
            // PostgreSQL's variant of a BLOB datatype is Bytea, which is a
            // PITA to work with, so we use base64-encoded data in a TEXT
            // field instead.
            $result = ($this->_platform === 'postgre')
                ? base64_decode(rtrim($result->data))
                : $result->data;

The issue I'm having is that $result->data is a resource, rather than a string as expected.

We're using DB_driver.php to pull the results.

Any suggestions?  I'm new to PostgreSQL, so is this something that can be fixed on the DB side?