Hi There Thanks for the patch. It seems to fix the error. I will test it more over the following days.
I see that you just released a new SA, but I dont see this patch in the changelog. Did it go in? Thanks Peter On Tue 16 Jan 2007 21:44, Michael Bayer wrote: > its quite easy to add this type in. im not exactly sure what python > type it should accept/return so you can start with just this patch: > > Index: lib/sqlalchemy/databases/postgres.py > =================================================================== > --- lib/sqlalchemy/databases/postgres.py (revision 2199) > +++ lib/sqlalchemy/databases/postgres.py (working copy) > @@ -32,6 +32,10 @@ > except: > psycopg = None > > +class Inet(sqltypes.TypeEngine): > + def get_col_spec(self): > + return "INET" > + > class PGNumeric(sqltypes.Numeric): > def get_col_spec(self): > if not self.precision: > @@ -161,6 +165,7 @@ > 'numeric' : PGNumeric, > 'float' : PGFloat, > 'real' : PGFloat, > + 'inet': Inet, > 'double precision' : PGFloat, > 'timestamp' : PG2DateTime, > 'timestamp with time zone' : PG2DateTime, > > additionally you can skip the reflection step and/or override the Inet > columns with any old type explicitly to avoid the failing dictionary > lookup (if you dont feel like using the above patch). > > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. To post to this group, send email to > sqlalchemy@googlegroups.com > To unsubscribe from this group, send email to > [EMAIL PROTECTED] For more options, visit this group > at http://groups.google.com/group/sqlalchemy?hl=en > -~----------~----~----~----~------~----~------~--~--- -- Peter Nixon http://www.peternixon.net/ PGP Key: http://www.peternixon.net/public.asc
pgplMXmPIMzpQ.pgp
Description: PGP signature