All pastes #192139 Raw Edit

dodo

public text v1 · immutable
#192139 ·published 2006-10-05 18:31 UTC
rendered paste body
Index: database/CreoleDatabase.class.php
===================================================================
--- database/CreoleDatabase.class.php   (revision 2130)
+++ database/CreoleDatabase.class.php   (working copy)
@@ -177,6 +177,14 @@
 
                        }
 
+            $charset = $this->getParameter('charset', null);
+            
+            if (!empty($charset))
+            {
+                $query = "SET CHARSET ".$charset;
+                $this->connection->executeUpdate($query);
+            }
+            
                        // get our resource
                        $this->resource = $this->connection->getResource();