• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DB charset in CI 1.6.0

#21
[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?

#22
[eluser]dik_[/eluser]
That's it then! I do use the mysqli driver!

#23
[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.

#24
[eluser]dik_[/eluser]
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:

Code:
$prefs = array(...);
$this->db =& $this->load->database('back', TRUE);
echo "=== ".$this->db->platform()." ===";
$this->load->dbutil();
$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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.