On Oct 5, 4:45 pm, Bryan Vicknair <bryanv...@gmail.com> wrote: > > I'm fine with a MySQL-only solution. The text construct is always the > > fallback, > > but I'm wondering if there is a way that I can use the attributes of my > > class > > for the column name, instead of just a string. My column names are going to > > change soon, but my object model will stay the same, so I am trying not to > > explicitly use the column names in my code.
This was my final solution. I cheated by using a different MYSQL function, one that actually accepts arguments seperated by commas. func.timestampadd(text('day'), func.if_(func.dayofweek(EmpTime.day) == 1, 0, 8 - func.dayofweek(EmpTime.day)), EmpTime.day) -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.