不要怂,就是干,撸起袖子干!

You need to sign in or sign up before continuing.
Commit 54593b36 by Mick Hansen

Merge pull request #2187 from jchbh-duplicate/master

Fix an bug: Boolean always return true in mysql when column define has attributes of ZeroFill and Unsigned.
2 parents 79c5730a 01ebbea1
Showing with 1 additions and 1 deletions
...@@ -316,7 +316,7 @@ module.exports = (function() { ...@@ -316,7 +316,7 @@ module.exports = (function() {
// Bit fields are returned as buffers // Bit fields are returned as buffers
value = value[0]; value = value[0];
} }
value = !!value; value = _.isString(value) ? !!parseInt(value) : !!value;
} }
if (!options.raw && originalValue !== value) { if (!options.raw && originalValue !== value) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!