You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> insert('foo', {})
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "mosql/util.py", line 832, in __call__
return self.stringify(*positional_values, **clause_args)
File "mosql/util.py", line 828, in stringify
return self.format(clause_args)
File "mosql/util.py", line 814, in format
return self.statement.format(clause_args)
File "mosql/util.py", line 747, in format
self.preprocessor(clause_args)
File "mosql/stmt.py", line 23, in insert_preprocessor
clause_args['columns'], clause_args['values'] = zip(*pairs)
ValueError: need more than 0 values to unpack
WORKS
>>>insert('foo', values=[], columns=[])
'INSERT INTO "foo" () VALUES ()'
The text was updated successfully, but these errors were encountered:
FAIL
WORKS
The text was updated successfully, but these errors were encountered: