Welcome Guest, Not a member yet? Register   Sign In
Result is a resource, not a strong

Regarding this code in Session_database_driver.php

            // 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?

Theme © iAndrew 2016 - Forum software by © MyBB