insert into table contains “foregin” reports errors

Bug #1265106 reported by tomas on 2013-12-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stado
Undecided
Unassigned

Bug Description

when insert into a table contain foregin key,it report errors as:
2013-12-31 10:16:59,465 - ERROR Catching throwable:
java.lang.NullPointerException
2013-12-31 10:16:59,465 - ERROR Throwing throwable:
java.lang.NullPointerException
2013-12-31 10:16:59,465 - ERROR Catching throwable:
org.postgresql.stado.exception.XDBServerException: Can not prepare request: null
        at org.postgresql.stado.engine.ExecutableRequest.setSQLObject(Unknown Source)
        at org.postgresql.stado.protocol.RequestAnalyzer.getExecutableRequest(Unknown Source)
        at org.postgresql.stado.protocol.PgProtocolSession.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NullPointerException

Alvin Peng (pengalvin) wrote :

Not sure whether this related to distributed constraints.
Seems Stado does not support it for now.

in SqlAlterAddForeignKey.java:
public void prepare() throws Exception {
...
if (isSoftConstraint()) {
                // TODO we have soft reference, integrity check is needed
}
...

The soft constraint (distributed constraint) is not finished yet.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers