Permalink
Browse files

PostgreSQL limit reserved word

limit is a reserved word for PostgreSQL.
So it should be included in the default list of reserved words

1. Here is the sample app to demonstrate the problem ->
https://github.com/colt44/limitcolumn

2. Here is a known workaround:
Adding DB.userReservedWords = Full(Set("limit")) into Boot.scala
does solve the problem.
  • Loading branch information...
ggarciajr authored and fmpwizard committed Nov 12, 2012
1 parent b9e8a1b commit 13e3e25f5d8379e392f6414e930167b4df8d72c5
Showing with 8 additions and 0 deletions.
  1. +7 −0 contributors.md
  2. +1 −0 persistence/db/src/main/scala/net/liftweb/db/DB.scala
View
@@ -49,8 +49,15 @@ my employer or other contracts, and that I license this work under
an [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) license.
+### Name: ###
+Gilberto T. Garcia Jr
+
+### Email: ###
+ggarcia at eureka dot inf dot br
+
### Name: ###
Marko Elezović
### Email: ###
marko at element dot hr
+
@@ -885,6 +885,7 @@ trait DB extends Loggable {
"layer",
"level",
"like",
+ "limit", // reserved word for PostgreSQL
"limited",
"link",
"lists",

0 comments on commit 13e3e25

Please sign in to comment.