View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [v12.4.0] error "DATABASE() sql function with PostgreSQL - ProjeQtOr
 

[v12.4.0] error "DATABASE() sql function with PostgreSQL

More
24 Dec 2025 15:43 #1 by iFlorian
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

Please Log in or Create an account to join the conversation.

More
27 Dec 2025 16:31 #2 by babynus
Hi,

Issue is fixed.
Fix is already available through Subsription service.
Will be included in next patch.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.030 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.