Hi,
After upgrade to projeqtor 12.4.0 in projeqtor.log we can found :
2025-12-24 15:36:56.047 ** ERROR ** [V12.4.0] [21] Strack trace : 2025-12-24 15:36:56.047 ** ERROR ** [V12.4.0] [21] #0 Sql->query called at [/var/www/intranet-prod/projeqtor/projeqtor/api/index.php:132] 2025-12-24 15:36:56.077 ** ERROR ** [V12.4.0] [21] Exception-[22P02] SQLSTATE[22P02]: Invalid text representation: 7 ERREUR: syntaxe en entrée invalide pour le type numeric : « » LINE 1: ...rom project where (name = '' and idOrganization = '' and idP... ^ 2025-12-24 15:36:56.078 ** ERROR ** [V12.4.0] [21] For query : select * from project where (name = '' and idOrganization = '' and idProjectType='181') and ((project.id not in (0) or project.id is null ) and (project.id not in (0) or project.id is null or (project.idResource=21) ) and (project.id not in (0) or project.id is null or (project.idUser=21) )) 2025-12-24 15:36:56.078 ** ERROR ** [V12.4.0] [21] Strack trace : 2025-12-24 15:36:56.078 ** ERROR ** [V12.4.0] [21] #0 Sql->query called at [/var/www/intranet-prod/projeqtor/projeqtor/model/persistence/SqlElement.php:3167] 2025-12-24 15:36:56.078 ** ERROR ** [V12.4.0] [21] #1 SqlElement->getSqlElementsFromCriteria called at [/var/www/intranet-prod/projeqtor/projeqtor/api/index.php:299] 2025-12-24 15:36:56.124 ** ERROR ** [V12.4.0] [21] Exception-[42883] SQLSTATE[42883]: Undefined function: 7 ERREUR: la fonction database() n'existe pas LINE 4: WHERE TABLE_SCHEMA = DATABASE() ^ HINT: Aucune fonction ne correspond au nom donné et aux types d'arguments. Vous devez ajouter des conversions explicites de type. 2025-12-24 15:36:56.124 ** ERROR ** [V12.4.0] [21] For query : SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'project' 2025-12-24 15:36:56.124 ** ERROR ** [V12.4.0] [21] Strack trace : 2025-12-24 15:36:56.124 ** ERROR ** [V12.4.0] [21] #0 Sql->query called at [/var/www/intranet-prod/projeqtor/projeqtor/api/index.php:132] 2025-12-24 15:36:56.153 ** ERROR ** [V12.4.0] [21] Exception-[22P02] SQLSTATE[22P02]: Invalid text representation: 7 ERREUR: syntaxe en entrée invalide pour le type numeric : « » LINE 1: ...rom project where (name = '' and idOrganization = '' and idP... ^ 2025-12-24 15:36:56.154 ** ERROR ** [V12.4.0] [21] For query : select * from project where (name = '' and idOrganization = '' and idProjectType='181') and ((project.id not in (0) or project.id is null ) and (project.id not in (0) or project.id is null or (project.idResource=21) ) and (project.id not in (0) or project.id is null or (project.idUser=21) )) 2025-12-24 15:36:56.154 ** ERROR ** [V12.4.0] [21] Strack trace : 2025-12-24 15:36:56.154 ** ERROR ** [V12.4.0] [21] #0 Sql->query called at [/var/www/intranet-prod/projeqtor/projeqtor/model/persistence/SqlElement.php:3167] 2025-12-24 15:36:56.154 ** ERROR ** [V12.4.0] [21] #1 SqlElement->getSqlElementsFromCriteria called at [/var/www/intranet-prod/projeqtor/projeqtor/api/index.php:299]
Actually, there is no "DATABASE()" function in postgreSQL database.
“Be a yardstick of quality. Some people aren't used to an environment where excellence is expected.” ~ Steve Jobs
"...and while some may see them as the crazy ones, we see genius, because the ones who are crazy enough to think that they can change the world, are the ones who do." ~ Think Different
Hi,
Issue is fixed.
Fix is already available through Subsription service.
Will be included in next patch.