IDEMPIERE-1533 Constraint Name shouldn't be copied / Thanks to Nicolas Micoud (nmicoud)
This commit is contained in:
parent
0df53687fb
commit
bf8171b200
|
@ -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
|
||||
;
|
|
@ -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
|
||||
;
|
|
@ -74,6 +74,7 @@ public class Callout_AD_Column extends CalloutEngine
|
|||
+ " IsIdentifier, "
|
||||
+ " IsUpdateable, "
|
||||
+ " IsAlwaysUpdateable, "
|
||||
+ " FKConstraintType,"
|
||||
+ " COUNT(*) "
|
||||
+ "FROM AD_Column "
|
||||
+ "WHERE ColumnName = ? "
|
||||
|
@ -86,7 +87,8 @@ public class Callout_AD_Column extends CalloutEngine
|
|||
+ " ReadOnlyLogic, "
|
||||
+ " IsIdentifier, "
|
||||
+ " IsUpdateable, "
|
||||
+ " IsAlwaysUpdateable "
|
||||
+ " IsAlwaysUpdateable, "
|
||||
+ " FKConstraintType "
|
||||
+ "ORDER BY COUNT(*) DESC ";
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
|
@ -109,6 +111,7 @@ public class Callout_AD_Column extends CalloutEngine
|
|||
column.setIsIdentifier("Y".equals(rs.getString(8)));
|
||||
column.setIsUpdateable("Y".equals(rs.getString(9)));
|
||||
column.setIsAlwaysUpdateable("Y".equals(rs.getString(10)));
|
||||
column.setFKConstraintType(rs.getString(11));
|
||||
}
|
||||
}
|
||||
catch (SQLException e)
|
||||
|
|
Loading…
Reference in New Issue