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
{{ message }}
Repository navigation
SQLite DATETIME does not convert to Date in query with aliases #3611
if(result.hasOwnProperty(name)&&metaData.columnTypes[name]){if(metaData.columnTypes[name]==='DATETIME'){// we need to convert the timestamps into actual date objectsvarval=result[name];if(val!==null){if(val.indexOf('+')===-1){// For backwards compat. Dates inserted by sequelize < 2.0dev12 will not have a timestamp setresult[name]=newDate(val+self.sequelize.options.timezone);}else{result[name]=newDate(val);// We already have a timezone stored in the string}}}elseif(metaData.columnTypes[name].lastIndexOf('BLOB')!==-1){if(result[name]){result[name]=newBuffer(result[name]);}}}
in query.js
I had in result createAt, updateAt, but in metaData.columnTypes definition for create_at column
Activity
Test for issues with sqlite and date parsing. Closes #3611 and #2644
test(bugfix) Test for issues with sqlite and date parsing. Closes #3611…
test(bugfix) Test for issues with sqlite and date parsing. Closes #3611…
test(bugfix) Test for issues with sqlite and date parsing. Closes seq…
test(bugfix) Test for issues with sqlite and date parsing. Closes #3611…
test(bugfix) Test for issues with sqlite and date parsing. Closes #3611…