Expo ha scritto:
> If I would make a select with a field set to a constant like this:
>
> SELECT 1 AS field FROM foo
>
> how is the select()'s field definition ? I'v tried with:
>
> select([1], from_obj=[foo])
>
> but field has no name.
>
>   


select(["1 as bar"], from_obj=[foo])

Glauco




-- 
+------------------------------------------------------------+
                                  Glauco Uri - Programmatore
                                    glauco(at)allevatori.com 
                               
  Sfera Carta Software(r)      [EMAIL PROTECTED]
  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
-~----------~----~----~----~------~----~------~--~---

Reply via email to