Re: [Lift] How to use prepareStatement to select *** from DB (two db vender)?

2010-01-20 Thread Jeppe Nejsum Madsen
"Neil.Lv" writes: > Hi all, > > I use two db connections in my app, and I want to use > DB.prepareStatement to select > the records from the second db. > > It failed, Here is the code: > ### > def getHotByTid(id : Long) = > DB.use(bootstrap.liftweb.TwoDB) { > conn => > DB.

[Lift] How to use prepareStatement to select *** from DB (two db vender)?

2010-01-20 Thread Neil.Lv
Hi all, I use two db connections in my app, and I want to use DB.prepareStatement to select the records from the second db. It failed, Here is the code: ### def getHotByTid(id : Long) = DB.use(bootstrap.liftweb.TwoDB) { conn => DB.prepareStatement("SELECT * FROM hots WHE