a column name isn't "escaped", it's quoted. The quoting logic in a compiler goes through compiler.preparer.quote(column.name), if the name needs to be quoted it will come back as such.
On 06/14/2016 05:16 AM, Вадим Гухман wrote:
Hi, I'm trying to create a small library with utils and compilers for sqlalchemy that extends sqlalchemy default functionality. Right now it has two compilers. One for Date and one for merge-like statement. I have a problem with on duplicate key update statement in mysql that I've summarized in this issue. https://github.com/purpleP/sqlalchemy-utils/issues/1 The key problem here is that I don't know which part of sqlalchemy should I use to produce parts resulting sql (like escaped column names in this case). So although it's all already implemented somewhere in sqlalchemy I'm not sure how to use that. I've tried to dig into sqlalchemy code, but it uses too many levels of indirection for me to understand quickly, so I've decided that it's better to ask here. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
-- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
