CMDBuild Forum

v3.1 ERROR: missing FROM-clause entry for table "q3_master"

Hello,

I'm using version 3.1 and got error while tried add relations any case when objects exists or not exists.

 

 

org.cmdbuild.dao.DaoException: error executing query = '

SELECT (Q3_MASTER."Id" IN (

SELECT "IdObj1" FROM "Map_CountourBuilding"

WHERE "IdObj2" = 4426 AND "Status" = 'A')

) _fordomainhasthisrelation,

(Q3_MASTER."Id" IN (

SELECT "IdObj1" FROM "Map_CountourBuilding" WHERE "Status" = 'A')

) _fordomainhasanyrelation, "Id" _id,

"IdClass"::regclass _idclass,

"CurrentId" _currentid,

"User" _user,

"BeginDate" _begindate,

"EndDate" _enddate,

"Status" _status,

"Code" _code,

"Description" _description,

"IdTenant" _idtenant,

"Notes" _notes

FROM "Network_contour" _networkcontour

WHERE "Status" = 'A' 

ORDER BY _description ASC LIMIT 100', 

 

caused by:  org.springframework.jdbc.BadSqlGrammarException: StatementCallback; 

bad SQL grammar 

[SELECT (Q3_MASTER."Id" IN (

SELECT "IdObj1" FROM "Map_CountourBuilding"

WHERE "IdObj2" = 4426

AND "Status" = 'A')

) _fordomainhasthisrelation, 

( Q3_MASTER."Id" IN (

SELECT "IdObj1" FROM "Map_CountourBuilding" WHERE "Status" = 'A'

)) _fordomainhasanyrelation, "Id" _id,

"IdClass"::regclass _idclass, 

"CurrentId" _currentid, 

"User" _user, 

"BeginDate" _begindate, 

"EndDate" _enddate, 

"Status" _status, 

"Code" _code, 

"Description" _description, 

"IdTenant" _idtenant, 

"Notes" _notes 

FROM "Network_contour" _networkcontour 

WHERE "Status" = 'A' 

ORDER BY _description ASC LIMIT 100]; 

 

nested exception is org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table "q3_master" Position: 9, caused by: org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table "q3_master" Position: 9

 

Thanks for the reporting, the issue has been solved and the bug will be fixed in the next CMDBuild release.
CMDBuild Team

Previously Tecnoteca wrote:

Thanks for the reporting, the issue has been solved and the bug will be fixed in the next CMDBuild release.
CMDBuild Team
 
 
 
Goodmorning, i also have this problem.
i saw that the next relase will be on December '19. 
Is there any work around that we should use in the meantime?
 
Thanks in advance.
S.
 
 
As published in yesterday's newsletter:
    http://www.cmdbuild.org/it/diffusione/newsletter/cmdbuild-newsletter-nr.-74
before version 3.2 scheduled for the end of the year there will be an intermediate version 3.1.1 of bug fix in September.
CMDBuild Team
 
 

Previously Tecnoteca wrote:

As published in yesterday's newsletter:
    http://www.cmdbuild.org/it/diffusione/newsletter/cmdbuild-newsletter-nr.-74
before version 3.2 scheduled for the end of the year there will be an intermediate version 3.1.1 of bug fix in September.
CMDBuild Team
 
 

Is there any workaround until 3.1.1 release?

Thanks

N.D.C.

In fact , We found a workground:
Suppose you have a class A, add an attribute , which type is LOV.  then the domain operation will be successful.!
 
 
Previously Serena wrote:
Previously Tecnoteca wrote:
Thanks for the reporting, the issue has been solved and the bug will be fixed in the next CMDBuild release.
CMDBuild Team
 
 
 
Goodmorning, i also have this problem.
i saw that the next relase will be on December '19. 
Is there any work around that we should use in the meantime?
 
Thanks in advance.
S.