what version of Lift are you using? query was a string until fairly
recently on 1.1-SNAPSHOT

On Oct 14, 11:57 am, Marcin Jurczuk <mjurc...@gmail.com> wrote:
> Hello,
>
> I'm trying to dump SQL queries because I have weird error when using
> SQLServer (syntax error near 'LIMIT') using following code in
> Boot.scala
>
> DB.addLogFunc {
>          case (query, time) => {
>              Log.info("Total queries took " + time + "ms: ")
>              //query.allEntries.foreach(q => Log.info(q.toString))
>              query.allEntries.foreach({ case DBLogEntry(stmt,
> duration) =>
>              Log.info(stmt + " took " + duration + "ms")})
>              Log.info("End queries")
>       }
>    }
>
> However I got error while running that query is String type and there
> is no method allEntries.
> This code is from this group however I can't find DBLogEntry class/
> trait.
>
> Here is error from run:
> I:\devel\liftlab\src\main\scala\bootstrap\liftweb\Boot.scala:29:
> error: value allEntries is not a me
> mber of String
>              query.allEntries.foreach({ case DBLogEntry(stmt,
> duration) =>
>                    ^
> Best regards,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to