Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmyleswhite committed Apr 19, 2012
1 parent e0a14e4 commit 20fb9aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/sql.reader.R
Expand Up @@ -105,7 +105,10 @@ sql.reader <- function(data.file, filename, variable.name)
mysql.driver <- dbDriver("MySQL")

# Default value for 'port' in mysqlNewConnection is 0.
if ( is.null( database.info[['port']] ) ) database.info[['port']] <- 0
if (is.null(database.info[['port']]))
{
database.info[['port']] <- 0
}

connection <- dbConnect(mysql.driver,
user = database.info[['user']],
Expand Down

0 comments on commit 20fb9aa

Please sign in to comment.