Revision: 5070
          https://dev.openbravo.com/websvn/openbravo/?rev=5070&sc=1
Author:   marvintm
Date:     2008-06-16 15:37:32 +0200 (Mon, 16 Jun 2008)

Log Message:
-----------
Bug fixed [0000469] Now error messages will be shown in PostgreSQL if XML data 
prevents a constraint from being activated (specifically, if a row contains a 
reference to another row which doesn't exist ie. a foreign key is invalid).

Modified Paths:
--------------
    trunk/src-db/database/build.xml
    trunk/src-db/database/lib/dbsourcemanager.jar

Modified: trunk/src-db/database/build.xml
===================================================================
--- trunk/src-db/database/build.xml     2008-06-16 13:07:58 UTC (rev 5069)
+++ trunk/src-db/database/build.xml     2008-06-16 13:37:32 UTC (rev 5070)
@@ -520,40 +520,8 @@
   <target name="database.postimport.ORACLE">
   </target>
   <target name="database.preimport.POSTGRE">
-    <sql driver="${bbdd.driver}"
-         url="${bbdd.owner.url}"
-         userid="${bbdd.user}"
-         password="${bbdd.password}"
-         onerror="continue"
-         autocommit="true">
-        <classpath>
-            <fileset dir="${base.lib}">
-                <include name="**/*.jar">
-                </include>
-            </fileset>
-        </classpath>
-        <transaction>
-               update pg_class set reltriggers=0 WHERE PG_CLASS.RELNAMESPACE 
IN (SELECT PG_NAMESPACE.OID FROM PG_NAMESPACE WHERE PG_NAMESPACE.NSPNAME = 
CURRENT_SCHEMA());
-        </transaction>
-    </sql>
   </target>
   <target name="database.postimport.POSTGRE">
-    <sql driver="${bbdd.driver}"
-         url="${bbdd.owner.url}"
-         userid="${bbdd.user}"
-         password="${bbdd.password}"
-         onerror="continue"
-         autocommit="true">
-        <classpath>
-            <fileset dir="${base.lib}">
-                <include name="**/*.jar">
-                </include>
-            </fileset>
-        </classpath>
-        <transaction>
-               update pg_class set reltriggers = (SELECT count(*) from 
pg_trigger where pg_class.oid=tgrelid) WHERE PG_CLASS.RELNAMESPACE IN (SELECT 
PG_NAMESPACE.OID FROM PG_NAMESPACE WHERE PG_NAMESPACE.NSPNAME = 
CURRENT_SCHEMA());
-        </transaction>
-    </sql>
   </target>
   <target name="database.poststructure.ORACLE">
     <sql driver="${bbdd.driver}"

Modified: trunk/src-db/database/lib/dbsourcemanager.jar
===================================================================
(Binary files differ)



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to