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 hlellelid
Full name Hans Lellelid
Date 2006-11-17 08:19:08 PST
Message Yeah, that sounds perfect.

Thanks, Soenke. (Commit at will!)

Hans

Ron Rademaker wrote:
> I guess the options from the runtime conf will be set later? (Just in
> case anyone ever wants to override the default).
>
> Ron
>
> Soenke Ruempler - NorthClick wrote:
>> Hans Lellelid <mailto:hans at velum dot net> wrote on Friday, November 17, 2006
>> 5:03 PM:
>>
>>
>>> Hi Soenke,
>>>
>>> Oh, ok -- I was thinking we would set it in Propel class (probably
>>> getConnection() method?), but this certainly works too. I
>>> don't know if
>>> there's an advantage to one over the other.
>>>
>>
>> Yeah, I'm fine with getConnection(), too, as this will save the
>> additional
>> PDO constructor.
>>
>> Index: Propel.php
>> ====================​====================​====================​=======
>> --- Propel.php (revision 497)
>> +++ Propel.php (working copy)
>> @@ -442,6 +442,13 @@
>> try {
>> $con = new PropelPDO($dsn, $user,
>> $password,
>> $driver_options);
>> $con->setAttribu​te(PDO::ATTR_ERRMODE​,
>> PDO::ERRMODE_EXCEPTION);
>> +
>> + // Toggle PS Emulation for MySQL
>> driver as
>> the native server-side
>> + // implementation seems to be buggy
>> and slow
>> + if
>> ($con->getAttrib​ute(PDO::ATTR_DRIVER​_NAME) == 'mysql') {
>> +
>> $con->setAttribu​te(PDO::ATTR_EMULATE​_PREPARES, true);
>> + }
>> +
>> self::$connectionMap[$name] = $con;
>> } catch (PDOException $e) {
>> throw new PropelException("Unable to
>> open
>> PDO connection", $e);
>> -soenke
>>
>> --------------------​--------------------​--------------------​---------
>> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
>> For additional commands, e-mail: dev-help at propel dot tigris dot org
>>
>>
>>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe@prop​el.tigris.org
> For additional commands, e-mail: dev-help at propel dot tigris dot org
>

« Previous message in topic | 8 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: