IDEMPIERE-1533 Constraint Name shouldn't be copied / Thanks to Nicolas Micoud (nmicoud)

This commit is contained in:
Carlos Ruiz 2013-11-16 09:58:16 -05:00
parent 0df53687fb
commit bf8171b200
3 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,10 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- Nov 15, 2013 7:35:45 PM CET
-- IDEMPIERE-1533 Constraint Name shouldn't be copied
UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_DATE('2013-11-15 19:35:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210871
;
SELECT register_migration_script('201311151945_IDEMPIERE-1533.sql') FROM dual
;

View File

@ -0,0 +1,7 @@
-- Nov 15, 2013 7:35:45 PM CET
-- IDEMPIERE-1533 Constraint Name shouldn't be copied
UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-11-15 19:35:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210871
;
SELECT register_migration_script('201311151945_IDEMPIERE-1533.sql') FROM dual
;

View File

@ -74,6 +74,7 @@ public class Callout_AD_Column extends CalloutEngine
+ " IsIdentifier, " + " IsIdentifier, "
+ " IsUpdateable, " + " IsUpdateable, "
+ " IsAlwaysUpdateable, " + " IsAlwaysUpdateable, "
+ " FKConstraintType,"
+ " COUNT(*) " + " COUNT(*) "
+ "FROM AD_Column " + "FROM AD_Column "
+ "WHERE ColumnName = ? " + "WHERE ColumnName = ? "
@ -86,7 +87,8 @@ public class Callout_AD_Column extends CalloutEngine
+ " ReadOnlyLogic, " + " ReadOnlyLogic, "
+ " IsIdentifier, " + " IsIdentifier, "
+ " IsUpdateable, " + " IsUpdateable, "
+ " IsAlwaysUpdateable " + " IsAlwaysUpdateable, "
+ " FKConstraintType "
+ "ORDER BY COUNT(*) DESC "; + "ORDER BY COUNT(*) DESC ";
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
@ -109,6 +111,7 @@ public class Callout_AD_Column extends CalloutEngine
column.setIsIdentifier("Y".equals(rs.getString(8))); column.setIsIdentifier("Y".equals(rs.getString(8)));
column.setIsUpdateable("Y".equals(rs.getString(9))); column.setIsUpdateable("Y".equals(rs.getString(9)));
column.setIsAlwaysUpdateable("Y".equals(rs.getString(10))); column.setIsAlwaysUpdateable("Y".equals(rs.getString(10)));
column.setFKConstraintType(rs.getString(11));
} }
} }
catch (SQLException e) catch (SQLException e)