details:   /erp/devel/dbsm-main/rev/6806615911a0
changeset: 280:6806615911a0
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Wed Mar 03 11:54:19 2010 +0100
summary:   Related to issue 12514. This will also be done in Oracle (because 
the ModelComparator is not platform specific

diffstat:

 src/org/apache/ddlutils/platform/SqlBuilder.java |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 174efa1ff5b4 -r 6806615911a0 
src/org/apache/ddlutils/platform/SqlBuilder.java
--- a/src/org/apache/ddlutils/platform/SqlBuilder.java  Tue Mar 02 16:58:04 
2010 +0100
+++ b/src/org/apache/ddlutils/platform/SqlBuilder.java  Wed Mar 03 11:54:19 
2010 +0100
@@ -3795,9 +3795,9 @@
    */
   protected void writeCreateFunctionStmt(Function function) throws IOException 
{
     if (function.getTypeCode() == Types.NULL) {
-      print("CREATE PROCEDURE ");
+      print("CREATE OR REPLACE PROCEDURE ");
     } else {
-      print("CREATE FUNCTION ");
+      print("CREATE OR REPLACE FUNCTION ");
     }
     printIdentifier(getStructureObjectName(function));
   }

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to