On Thu 31 Jul 2008 05:09:14 PM EDT, Oleg Broytmann wrote:
> On Thu, Jul 31, 2008 at 08:58:04PM +0000, Matthew Wilson wrote:
>> Index: sqlobject/converters.py
>> ===================================================================
>> --- sqlobject/converters.py  (revision 3536)
>> +++ sqlobject/converters.py  (working copy)
>> @@ -163,7 +163,7 @@
>>      registerConverter(time.struct_time, StructTimeConverter)
>>  
>>  def DateTimeConverter(value, db):
>> -    return "'%04d-%02d-%02d %02d:%02d:%02d'" % (
>> +    return "TIMESTAMP '%04d-%02d-%02d %02d:%02d:%02d'" % (
>>          value.year, value.month, value.day,
>>          value.hour, value.minute, value.second)
>
>    How do you prevent MySQL and all other database to complain and reject
> the query? Converters are used for all kinds of backends, not only for Pg.
>

Is there some way to write a specific converterjust for postgresql, and
then allow other databases to use the original?

Can I use the db parameter to find out what database I'm using?

Matt


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to