drush-ops/drush — pull request #584 by rbayliss (2014-04-14 21:02:56+00:00)
Title: sql-create does not grant access to the right user when db-su is used

SQL create (and by extension site-install) has recently started creating databases and granting access to the wrong user if a db-su has been set up. The problem is that the database username and password are set to the su credentials before forming the createdb query. This PR fixes the problem by switching the ordering of generating the query and setting the su credentials.