you'd need to be more specific what you mean by "aliases" (it sounds  
like you mean labels) and what the actual issue is.  If its label  
names too long, use the latest 0.5 release candidate and set  
label_length=0 to create_engine().

also if you are using select() constructs generated by Query, again be  
on the 0.5 series and call Query.statement, you'll get the select()  
statement with the use_labels flag turned off.   this is more  
appropriate if you are using the select()s inside of further  
constructs such as a union.

On Dec 8, 2008, at 8:59 PM, Moshe C. wrote:

>
> How can I prevent aliases fro appearing in the query?
> I have hit a MySQL bug that is related to a very biq SQL query string
> being sent and I am trying to shorten it.
> I might need an alias on one of the columns, though.
>
> The query is created originally by ORM query.compile() and then I
> create a UNION selection using union() of a couple of those.
>
>
> TIA
> Moshe
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
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