[sqlalchemy] Re: problem with cast in postgres

2007-12-04 Thread Michael Bayer

CAST is its own contstruct:

Scheda.select( cast( tbl['scheda'].c.valore, 'int')  == '753' )



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[sqlalchemy] Re: problem with cast in postgres

2007-12-04 Thread Glauco

Michael Bayer ha scritto:
 CAST is its own contstruct:

 Scheda.select( cast( tbl['scheda'].c.valore, 'int')  == '753' )
   


what doses it means?


ahhh ops !

i've get  cast from sqlalchemy.funct instead of sqlalchemy.sql

anyway  'int' cannot work
this is the proper use.

Scheda.select( sqlalchemy.sql.cast( tbl['scheda'].c.valore, 
sqlalchemy.types.INT)  == '753' )




Thank you Michael

-- 
++
 Glauco Uri  
 glauco(at)sferacarta.com 
   
  Sfera Carta Software®   info(at)sferacarta.com
  Via Bazzanese,69  Casalecchio di Reno(BO) - Tel. 051591054
++



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---