MySQL: Outgoing booleans are turned into ints
MySQL: Outgoing booleans are turned into ints

In the MySQL dialect, values used to generate insert, bulk insert, and update queries are now checked for boolean-ness and will be turned into an int.

There was already duplicated logic applied to outgoing values to check if the value was a Date or not. I factored out value processing to a single function and added a check for typeof boolean.

The new function also escapes the return value since that was also being done everywhere.

Fixes #607

MagicIndustries/sequelize,pixel2/sequelize,rpaterson/sequelize,tmcleroy/sequelize,Daimonos/sequelize,yjwong/sequelize,zillow-oc/sequelize,mendenhallmagic/sequelize,ziflex/sequelize,denim2x/sequelize,yelmontaser/sequelize,peachworks/sequelize,tedjt/sequelize,p0vidl0/sequelize,gutobortolozzo/sequelize,eventhough/sequelize,seanjh/sequelize,paolord/sequelize,inDream/sequelize,jessicalc/sequelize,abegines/sequelize,pola88/sequelize,tornillo/sequelize,skv-headless/sequelize,3032441712/sequelize,treejames/sequelize,scboffspring/sequelize,JYzor/sequelize,jayprakash1/sequelize,adeo-proxideco/sequelize-oracle,johngiudici/sequelize,oshoemaker/sequelize,givery-technology/sequelize,jasonku/sequelize,johanneswuerbach/sequelize,DavidMorton/sequelize,seegno-forks/sequelize,niceilm/sequelize,felixfbecker/sequelize,linalu1/sequelize,darwinserrano/sequelize,sequelize/sequelize,briandamaged/sequelize,braddunbar/sequelize,dantman/sequelize,chauthai/sequelize,lukealbao/sequelize,treythomas123/sequelize,russellpatterson/mssequelize,FredKSchott/sequelize,scottty881/sequelize,alanhoff/patch-sequelize-3489,ReikoR/sequelize,toddsby/sequelize,lebretr/sequelize-oracle,smokeelow/sequelize,Wsiegenthaler/sequelize,StefanoDalpiaz/sequelize,appleboy/sequelize,mvnnn/sequelize,crzidea/sequelize,sequelize/sequelize,majorleaguesoccer/sequelize,mcanthony/sequelize,konnecteam/sequelize,sequelize/sequelize,ojolabs/sequelize,oss92/sequelize,cbauerme/sequelize,gorangajic/sequelize,Kagaherk/sequelize,Americas/sequelize,SerkanSipahi/sequelize,dbirchak/sequelize,sreucherand/sequelize,topikachu/sequelize,janmeier/sequelize,overlookmotel/sequelize,atorkhov/sequelize,imjerrybao/sequelize,Aweary/sequelize,venkatesh-tr/sequelize,wKich/sequelize,Znarkus/sequelize,sankethkatta/sequelize,bulkan/sequelize,Bibernull/sequelize,keik/sequelize,czardoz/sequelize,mdarveau/sequelize,overlookmotel/sequelize,mliszewski/sequelize,grimurd/sequelize,cschwarz/sequelize,brunocasanova/sequelize,arcana261/sequelize,alexbooker/sequelize,botter-workshop/sequelize,meetearnest/sequelize,xpepermint/sequelize,phanect/sequelize,quiddle/sequelize,subjectix/sequelize,rfink/sequelize,growaspeople/sequelize,Ghost141/sequelize,Alexsey/sequelize,seshness/sequelize,jungseob86/sequelize,toddbluhm/sequelize,kenjitayama/sequelize,globesherpa/sequelize,baotingfang/sequelize,gintsgints/sequelize,PsiXdev/sequelize,jingpei/sequelize,alekbarszczewski/sequelize,eddieajau/sequelize,yonjah/sequelize,lebretr/sequelize-oracle,jayprakash1/sequelize,pensierinmusica/sequelize,emhagman/sequelize,nemisj/sequelize,pentium100/sequelize,Amgen/sequelize,sorin/sequelize,kevinawoo/sequelize,thomascool/newsequelize,codyrigney92/sequelize,bangbang93/sequelize,alitaheri/sequelize,camhux/sequelize,joe-at-fiziico/sequelize-point-support,jchbh-duplicate/sequelize,elijah513/sequelize,Verdier/sequelize,yotamofek/sequelize,pedrox-3w/sequelize,andywhite37/sequelize,konnecteam/sequelize,savageautomate/sequelize,Americas/sequelize,sobotklp/sequelize,3ch01c/sequelize,rodrigoapereira/sequelize,PhinCo/sequelize,adeo-proxideco/sequelize-oracle,angelxmoreno/sequelize,festo/sequelize,calvintwr/sequelize,hariprasadkulkarni/sequelize,abossard/sequelize,bomattin/sequelize,mikeringrose/sequelize,bassarisse/sequelize,chriszs/sequelize,pimterry/sequelize,inDream/sequelize