balderdashy/sails-mysql — pull request #39 by kenhunt (2013-09-20 23:46:05+00:00)
Title: In create(), only apply the result insertId when it is non-zero. Fixes p...

This corrects a problem where apps that manage their own 'id' column (i.e. non-autoincrement) in a Sails model would (falsely) receive .id of zero in the create() result callback.