orator icon indicating copy to clipboard operation
orator copied to clipboard

TypeError: increment() got an unexpected keyword argument 'name'

Open mouday opened this issue 5 years ago • 1 comments

in document https://orator-orm.com/docs/0.9/query_builder.html#incrementing-or-decrementing-the-value-of-a-column

db.table('student').increment('votes', 1, name='John')
# TypeError: increment() got an unexpected keyword argument 'name'

mouday avatar Dec 10 '19 03:12 mouday

but , i looked code ,maybe this:

db.table('student').increment('age', 1, {'name': 'John'})
"UPDATE `student` SET `age` = `age` + 1, `name` = 'John'"

mouday avatar Dec 10 '19 03:12 mouday