Issue 24682: Fix limit clause construction
authorStefan Hühner <stefan.huehner@openbravo.com>
Tue, 10 Sep 2013 08:26:32 +0200
changeset 465 21dd58e127a8
parent 464 621081475315
child 466 c21df20ed7b1
Issue 24682: Fix limit clause construction
src/org/apache/ddlutils/platform/oracle/Oracle8Platform.java
src/org/apache/ddlutils/platform/postgresql/PostgreSqlPlatform.java
--- a/src/org/apache/ddlutils/platform/oracle/Oracle8Platform.java	Fri Sep 06 12:26:06 2013 +0200
+++ b/src/org/apache/ddlutils/platform/oracle/Oracle8Platform.java	Tue Sep 10 08:26:32 2013 +0200
@@ -407,6 +407,6 @@
 
   @Override
   public String limitOneRow() {
-    return "where rownum<2";
+    return " where rownum<2";
   }
 }
--- a/src/org/apache/ddlutils/platform/postgresql/PostgreSqlPlatform.java	Fri Sep 06 12:26:06 2013 +0200
+++ b/src/org/apache/ddlutils/platform/postgresql/PostgreSqlPlatform.java	Tue Sep 10 08:26:32 2013 +0200
@@ -536,6 +536,6 @@
 
   @Override
   public String limitOneRow() {
-    return "LIMIT 1";
+    return " LIMIT 1";
   }
 }