Welcome Guest, Not a member yet? Register   Sign In
DB charset in CI 1.6.0

[eluser]Derek Jones[/eluser]
Just for the record, I'm unable to duplicate this problem with or without autoloading. CI's own SET NAMES query is executing properly for me either way. You don't happen to have set the 'autoinit' class property to FALSE have you, and are manually initializing and connecting to your databases? Or are you using the MySQLi driver?

That's it then! I do use the mysqli driver!

[eluser]Derek Jones[/eluser]
Try the just-released version 1.6.1. db_set_charset() was not yet implemented for the MySQLi driver in 1.6.0. I should have asked that question a few days ago.

great, works like a charm now! Smile

thanks Derek...

while we 're at it, I understand that db backup using the util class is not available for mysli. So I'm trying something like this:

$prefs = array(...);
$this->db =& $this->load->database('back', TRUE);
echo "=== ".$this->db->platform()." ===";
$backup =& $this->dbutil->backup($prefs);

The "back" group has exactly the same settings as the default group, only the driver is mysql instead.
This works fine on my PC, but not on my host, where it creates a 0k gzip file.

The code above successfully prints "=== mysql ===" on both servers.

Any idea where I might be going wrong? Smile

Theme © iAndrew 2016 - Forum software by © MyBB