From 897ffd6dbcba911015f1054e6fa783aec50b05a6 Mon Sep 17 00:00:00 2001 From: CodingMinds Date: Tue, 8 May 2012 22:17:17 +0200 Subject: [PATCH] more fixes for case sensitiv mysql --- app/models/User.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/User.scala b/app/models/User.scala index 46b3d43..70e1294 100644 --- a/app/models/User.scala +++ b/app/models/User.scala @@ -42,7 +42,7 @@ 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 => @@ -50,7 +50,7 @@ object 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 =>