Skip to content

Commit

Permalink
Fixes #9287: Database size doesn't show up on the Reports database
Browse files Browse the repository at this point in the history
  • Loading branch information
ncharles committed Oct 8, 2016
1 parent 8725e2c commit 4ac4311
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class ReportsJdbcRepository(doobie: Doobie) extends ReportsRepository with Logga
}

override def getDatabaseSize(databaseName:String) : Box[Long] = {
val q = sql"""select pg_total_relation_size('${databaseName}') as "size" """.query[Long].unique
val q = query[Long](s"""select pg_total_relation_size('${databaseName}') as "size" """).unique
q.attempt.transact(xa).run ?~! "Could not compute the size of the database"
}

Expand Down

0 comments on commit 4ac4311

Please sign in to comment.