Login | Register
My pages Projects Community openCollabNet

Discussions > dev > RE: [propel-dev] Re: [propel] Is safe to use propel 1.3?

propel
Discussion topic

Back to topic list

RE: [propel-dev] Re: [propel] Is safe to use propel 1.3?

Reply

Author Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de>
Full name Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de>
Date 2006-11-17 08:00:11 PST
Message Hans Lellelid <mailto:hans at velum dot net> wrote on Friday, November 17, 2006
3:19 PM:

> Thanks, Soenke, you beat me too it :)
>
> Yeah, maybe we could do that by default for MySQL, though it does
> seem like a bit of a hack. We should probably issue a debug logging
> statement indicating that we're doing that, if we do turn
> that on behind
> the scenes. If you want to look into it, I'd be grateful, as I'm
> probably not going to get to it today otherwise.

I guess for beta-testing this "hack"/workaround without logging should be
enough, shouldn't it?

Index: PropelPDO.php
====================​====================​====================​=======
--- PropelPDO.php (revision 497)
+++ PropelPDO.php (working copy)
@@ -41,6 +41,22 @@
 class PropelPDO extends PDO {

        /**
+ * The constructor - currently just for a MySQL driver workaround
+ *
+ */
+ public function __construct($dsn, $username = null, $password =
null, array $driver_options = array()) {
+
+ parent::__construct($dsn, $username, $password,
$driver_options);
+
+ // Toggle PS Emulation for MySQL driver as the native
server-side
+ // implementation seems to be buggy and slow
+ if ($this->getAttri​bute(PDO::ATTR_DRIVE​R_NAME) == 'mysql') {
+ $this->setAttrib​ute(PDO::ATTR_EMULAT​E_PREPARES,
true);
+ }
+
+ }
+
+ /**
         * The current transaction depth.
         * @var int
         */

If no one complains, I'll create a ticket and commit the patch.

-soenke

« Previous message in topic | 4 of 16 | Next message in topic »

Messages

Show all messages in topic

Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? Ron Rademaker <r dot rademaker at virtualbuilding dot nl> Ron Rademaker <r dot rademaker at virtualbuilding dot nl> 2006-11-17 06:06:45 PST
     RE: [propel-dev] Re: [propel] Is safe to use propel 1.3? Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> 2006-11-17 06:15:47 PST
         Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? hlellelid Hans Lellelid 2006-11-17 06:18:51 PST
             RE: [propel-dev] Re: [propel] Is safe to use propel 1.3? Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> 2006-11-17 08:00:11 PST
                 Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? hlellelid Hans Lellelid 2006-11-17 08:02:56 PST
                     RE: [propel-dev] Re: [propel] Is safe to use propel 1.3? Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> 2006-11-17 08:12:26 PST
                         Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? Ron Rademaker <r dot rademaker at virtualbuilding dot nl> Ron Rademaker <r dot rademaker at virtualbuilding dot nl> 2006-11-17 08:15:29 PST
                             Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? hlellelid Hans Lellelid 2006-11-17 08:19:08 PST
                             RE: [propel-dev] Re: [propel] Is safe to use propel 1.3? Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> 2006-11-17 08:21:36 PST
                                 Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? hlellelid Hans Lellelid 2006-11-17 08:31:09 PST
                                 Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? Ron Rademaker <r dot rademaker at virtualbuilding dot nl> Ron Rademaker <r dot rademaker at virtualbuilding dot nl> 2006-11-17 08:31:45 PST
                                 RE: [propel-dev] Re: [propel] Is safe to use propel 1.3? Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> Soenke Ruempler - NorthClick <soenke dot ruempler at northclick dot de> 2006-11-17 08:31:55 PST
                                     Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-11-17 08:47:19 PST
                                         Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? Ron Rademaker <r dot rademaker at virtualbuilding dot nl> Ron Rademaker <r dot rademaker at virtualbuilding dot nl> 2006-11-17 08:52:07 PST
                                         Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> =?ISO-8859-1?Q?David_Z=FClke?= <dz at bitxtender dot com> 2006-11-17 08:52:55 PST
                                             Re: [propel-dev] Re: [propel] Is safe to use propel 1.3? hlellelid Hans Lellelid 2006-11-17 09:59:59 PST
Messages per page: