Scope 'smart' variable correctly
Make variable definition pattern consistent
Move var definition to top of scope
Stop scopeOptions global leak
Stop beforeHook, afterHook global leaks
Adds an additional check for enum value before converting it toLowerCase

Basically fixes an issue introduced with commit 2d298a3c9fca0a342251c665728cff04fc595a9b that causes conversion of undefined toLowerCase

TypeError: Cannot call method 'toLowerCase' of undefined
    at null.<anonymous> (/path/to/project/modules/elms/node_modules/sequelize/lib/dao.js:139:127)
    at EventEmitter.emit (events.js:95:17)
    at null.<anonymous> (/path/to/project/modules/elms/node_modules/sequelize/lib/dao-validator.js:45:17)
    at Hooks.runHooks (/path/to/project/modules/elms/node_modules/sequelize/lib/hooks.js:19:15)
    at null.<anonymous> (/path/to/project/modules/elms/node_modules/sequelize/lib/dao-validator.js:39:29)
    at Hooks.runHooks (/path/to/project/modules/elms/node_modules/sequelize/lib/hooks.js:19:15)
    at null.fct (/path/to/project/modules/elms/node_modules/sequelize/lib/dao-validator.js:26:27)
    at null.<anonymous> (/path/to/project/modules/elms/node_modules/sequelize/lib/emitters/custom-event-emitter.js:25:18)
    at processImmediate [as _immediateCallback] (timers.js:330:15)
Merge pull request #1053 from owcd/master

Adds an additional check for enum value before converting it toLowerCase
Default dialect in sequelize generatec config

The config.json generated by sequelize -i does not supply a dialect
key/value pair when generating. It defaults to mysql so lets make this
clear by adding it to the config file
Make the logic for manipulating sqlite data types a bit more solid
Merge pull request #1058 from janmeier/sqliteweirdness

Make the logic for manipulating sqlite data types a bit more solid
Merge pull request #1056 from pbjorklund/default_config

Default dialect in sequelize generatec config
Update connector-manager.js

That will fix the bug on 'error: sorry, too many clients already'
Merge pull request #1065 from thomascool/patch-1

Update connector-manager.js
Stop setting global variable 'columnTypes' on error
Force mocha to check for global leaks
Revert global leak check to have passing tests

This reverts commit afdf1295b91c1fa1f7350f6b43b1b27ac21696b9.
Stop leaking global 'valueOutOfScope'
Move variable declaration to top of scope
Stop leaking global '_value'
Stop leaking global 'type'