Hi everybody,
I'm trying to develop a plugin ...which access al the defined databases in
my trac such as ticket, ticket_custom and a lot of other tables !
I can access them ...and do all the query stuff of sql but I can't edit
them ! I was trying this code as example :
env = self.env
@with_transaction(env)
def do_something(db):
cursor = db.cursor()
cursor.execute("delete description from ticket with id='162' ;")
# I've tried "delete * from ticket ;"
I get this error :
Trac detected an internal error:
OperationalError: near "description": syntax error
Any idea ?
Thanks
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/trac-users/-/zOnbf4zavRgJ.
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/trac-users?hl=en.