CodeIgniter Forums
Result is a resource, not a strong - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Result is a resource, not a strong (/showthread.php?tid=67751)



Result is a resource, not a strong - TimXM - 04-04-2017

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?