Permalink
Browse files

call custom DBVendor rather than StandardDBVendor to allow an optional

schema name.
  • Loading branch information...
1 parent fc255a3 commit ae129f3c9fb8e4930121ffa9f7f0a64ba8d95210 @ldeck committed Apr 28, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/main/scala/bootstrap/liftweb/BootMapper.scala
@@ -18,11 +18,11 @@ import code.model._
object BootMapper {
def boot {
if (!DB.jndiJdbcConnAvailable_?) {
- val vendor = new StandardDBVendor(Props.get("db.driver") openOr "org.h2.Driver",
- Props.get("db.url") openOr "jdbc:h2:lift_proto.db;AUTO_SERVER=TRUE",
- Props.get("db.user"),
- Props.get("db.password")
- Props.get("db.schema"))
+ val vendor = new DBVendor(Props.get("db.driver") openOr "org.h2.Driver",
+ Props.get("db.url") openOr "jdbc:h2:lift_proto.db;AUTO_SERVER=TRUE",
+ Props.get("db.user"),
+ Props.get("db.password"),
+ Props.get("db.schema"))
LiftRules.unloadHooks.append(vendor.closeAllConnections_! _)
DB.defineConnectionManager(DefaultConnectionIdentifier, vendor)

0 comments on commit ae129f3

Please sign in to comment.