Notes |
|
(0084232)
|
hgbot
|
2016-02-16 10:34
|
|
Repository: erp/devel/dbsm-main
Changeset: 3ca79561ccebcc817f83f918921eec319093f785
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Feb 16 10:34:15 2016 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/3ca79561ccebcc817f83f918921eec319093f785 [^]
related to bug 32244: test cases should fail in case of warn/error is logged
---
M src-test/src/org/openbravo/dbsm/test/base/DbsmTest.java
A src-test/src/org/openbravo/dbsm/test/base/TestLogAppender.java
---
|
|
|
|
This is caused because it is being tried to disable not-null constraint from a column which is already nullable. In Oracle this statement causes an error whereas in PostgreSQL is just ignored.
Existing test suite didn't caught this error because, although there are test cases executing this case, the assertions ensure the model is correct but logs were not checked to prevent error/warning messages.
Test cases have been changed to fail in case any error/warning is logged during the process. |
|
|
(0084281)
|
hgbot
|
2016-02-17 13:13
|
|
Repository: erp/devel/dbsm-main
Changeset: 897107b8de128f06c2237476cdd64c92fad3c846
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Feb 16 14:55:08 2016 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/897107b8de128f06c2237476cdd64c92fad3c846 [^]
related to bug 32244: ORA error in log when setting an AD column to not null
Prevented trying to disable not-null constraints in case the column was already
nullable.
---
M src/org/apache/ddlutils/Platform.java
M src/org/apache/ddlutils/platform/PlatformImplBase.java
M src/org/apache/ddlutils/platform/SqlBuilder.java
M src/org/apache/ddlutils/platform/oracle/Oracle8Builder.java
M src/org/apache/ddlutils/platform/postgresql/PostgreSqlBuilder.java
---
|
|
|
(0084282)
|
hgbot
|
2016-02-17 13:13
|
|
|
|
(0084283)
|
hgbot
|
2016-02-17 13:15
|
|
Repository: erp/devel/pi
Changeset: 983bdd5eab9bcd11e1ddc7d85ad7aa637e9afbd5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Feb 17 13:14:36 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/983bdd5eab9bcd11e1ddc7d85ad7aa637e9afbd5 [^]
fixed bug 32244: ORA error in log when setting an AD column to not null
Prevented trying to disable not-null constraints in case the column was already
set as nullable in DB.
---
M src-db/database/lib/dbsourcemanager.jar
---
|
|
|
(0084488)
|
hgbot
|
2016-02-25 11:23
|
|
Repository: erp/devel/dbsm-main
Changeset: 827164944af4f27b05da160d41eb6dd9a4978d3a
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Feb 25 09:26:26 2016 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/827164944af4f27b05da160d41eb6dd9a4978d3a [^]
related to issue 32244: added additional test cases
Changes for column mandatory <--> no mandatory are now covered for both AD
and instance tables.
---
M src-test/src/org/openbravo/dbsm/test/model/data/OtherDefaults.java
---
|
|
|
(0084489)
|
hgbot
|
2016-02-25 11:23
|
|
Repository: erp/devel/pi
Changeset: 689c4b6505eaac93cfe275dc9ae23ca9e3f3be71
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Feb 25 11:22:36 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/689c4b6505eaac93cfe275dc9ae23ca9e3f3be71 [^]
fixed bug 32244: ORA shows error in log when setting an AD column to not null
Implemented a better condition to decide whether not nulls should be disabled,
now it is based on the flag set for deferred not nulls, covering in this manner
some cases that were not workding before and making the code clearer to understand
---
M src-db/database/lib/dbsourcemanager.jar
---
|
|
|
(0084490)
|
hgbot
|
2016-02-25 11:23
(edited on: 2016-02-25 11:27) |
|
Repository: erp/devel/dbsm-main
Changeset: 1314eec95492
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Feb 25 11:22:36 2016 +0100
URL: https://code.openbravo.com/erp/devel/dbsm-main/rev/1314eec95492 [^]
fixed bug 32244: ORA shows error in log when setting an AD column to not null
Implemented a better condition to decide whether not nulls should be disabled,
now it is based on the flag set for deferred not nulls, covering in this manner
some cases that were not workding before and making the code clearer to understand
|
|
|
(0084491)
|
hgbot
|
2016-02-25 11:24
|
|
|
|
|
Code reviewed and verified in pi@689c4b6505ea |
|
|
|
|
|
|
|