Skip to content

Commit

Permalink
more fixes for case sensitiv mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingMinds committed May 8, 2012
1 parent 379acc5 commit 897ffd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/User.scala
Expand Up @@ -42,15 +42,15 @@ object User {
}

def all = DB.withConnection { implicit c =>
SQL("select * from user").as(user *)
SQL("select * from User").as(user *)
}

def notNotAnonym = DB.withConnection { implicit c =>
SQL("select * from User where anonym is false").as(user *)
}

def findBy(param: (String, String)):List[User] = DB.withConnection { implicit c =>
SQL("select * from user where " + param._1 + " = {p}").on('p -> param._2).as(user *)
SQL("select * from User where " + param._1 + " = {p}").on('p -> param._2).as(user *)
}

def count: Long = DB.withConnection { implicit c =>
Expand Down

0 comments on commit 897ffd6

Please sign in to comment.