Closed LordDeveloper closed 1 year ago
I have a problem with increment and decrement methods in masonite orm models:
Code:
user.increment('balance', 1000)
Error:
The problem is related to MYSQL Grammer for missing "," separator in multiple update expressions. Created query:
update `users` set `users`.`balance` = `users`.`balance` + %s ("," is missing here) `users`.`updated_at` = %s
Manually fixed by changing this line: https://github.com/MasoniteFramework/orm/blob/2.0/src/masoniteorm/query/grammars/MySQLGrammar.py#L141
I have a problem with increment and decrement methods in masonite orm models:
Code:
Error:![image](https://user-images.githubusercontent.com/34248444/195129777-b680d140-3ed8-4357-9d10-e3d49273c5f7.png)
The problem is related to MYSQL Grammer for missing "," separator in multiple update expressions. Created query:
Manually fixed by changing this line: https://github.com/MasoniteFramework/orm/blob/2.0/src/masoniteorm/query/grammars/MySQLGrammar.py#L141