sql icon indicating copy to clipboard operation
sql copied to clipboard

Better handle inserting empty models cases

Open vladfaust opened this issue 7 years ago • 0 comments

Either change the error message from

Cannot append empty INSERT values. Ensure to call #insert before. Or if you want to insert all columns default, use 'INSERT INTO table DEFAULT VALUES' SQL query instead

to

Cannot append empty INSERT values. Ensure to call #insert before. Or if you want to insert a empty model or a model with all default values, use 'INSERT INTO table DEFAULT VALUES' SQL query instead

or allow to insert empty models.

vladfaust avatar Oct 26 '18 16:10 vladfaust