Initial merge of WP 3.9.0
Alter new MySQL error handling to conform to our MSSQL standards
Short-circuit setting of sql mode
Remove additional MySQL LIMIT commands
Replace LENGTH with proper LEN command
Merge remote-tracking branch 'origin/master' into latest