I'm migrating an old app that runs in an old version of web2py in python27. In a lot of places I use db.executesql with argument as_dict=True. The error that I am getting is that he asks me to define the colnames que es un nuevo argumento.
Sometimes SQL is a query to views and others to stored procedures
If I pass a list with the names of the fields it works, but it is something I want to avoid.
rows = db.executesql(_sql, as_dict=True, colnames=['MyField']) # This works fine
Is there any way to avoid the list with the names of the fields?
Jose