mySQLClientService.query(sql).then(function(result) {
            if (result.hasResultsetRows) {
                $scope.fatalErrorOccurred("Creating routine failed.");
            } else {
                $("#createRoutineDialog").modal("hide");