All pastes #192075 Raw Edit

Something

public text v1 · immutable
·published 2006-10-05 17:10 UTC
rendered paste body
Index: database/PropelDatabase.class.php
===================================================================
--- database/PropelDatabase.class.php   (revision 2130)
+++ database/PropelDatabase.class.php   (working copy)
@@ -157,6 +157,15 @@
                        Propel::init($runtime);
                        $this->connection = Propel::getConnection();
                        $this->resource =& $this->connection->getResource();
+
+                       $charset = $this->getParameter('charset', null);
+            
+            if (!empty($charset))
+            {
+                $query = "SET CHARSET ".$charset;
+                $this->connection->executeUpdate($query);
+            }
+            
                } catch (SQLException $e) {
                        // the connection's foobar'd
                        throw new DatabaseException($e->toString());