EHDEN / Trajectories

5 stars 2 forks source link

connection@jConnection$getUserName() not working in SQLite #1

Closed SulevR closed 4 years ago

SulevR commented 4 years ago

@solis9753 reported an error while using SQLite:

Line 114 in createEventPairsTable.R: dbUsername=connection@jConnection$getUserName()

produces an error:

Error in lapply(list(...), function(x) { :
  no slot of name "jConnection" for this object of class "DatabaseConnectorDbiConnection"

Although the connection object is created by DatabaseConnector::connect() method, the resulting object depends on the database engine and may differ for different drivers.

However, the database user name is not needed in this createEventPairsTable() anyways. Therefore, just remove this dbUsername parameter from the code.

SulevR commented 4 years ago

@solis9753 Please check whether this issue is fixed now.

solis9753 commented 4 years ago

@SulevR This seems to be fixed.