MantisBT - CDash
View Issue Details
0008191CDashpublic2008-11-28 09:542009-03-28 17:10
Rolf Eike Beer 
Julien Jomier 
normalmajoralways
closedfixed 
 
1.4 
0008191: pdo_query() does not work if it is not MySQL
I'm using trunk and found this:

pdo_query() does

  get_link_identifier(...)->query(...);

get_link_identifier() does

  return pdo_connect(...);

pdo_connect() does

  return true;
No tags attached.
Issue History
2008-11-28 09:54Rolf Eike BeerNew Issue
2008-11-28 10:00Julien JomierNote Added: 0014221
2008-11-28 10:48Rolf Eike BeerNote Added: 0014222
2008-11-28 11:21Julien JomierStatusnew => assigned
2008-11-28 11:21Julien JomierAssigned To => Julien Jomier
2008-11-28 11:21Julien JomierNote Added: 0014224
2008-11-28 12:19Rolf Eike BeerNote Added: 0014227
2008-11-28 13:06Julien JomierNote Added: 0014228
2008-11-28 13:06Julien JomierStatusassigned => resolved
2008-11-28 13:06Julien JomierFixed in Version => 1.3
2008-11-28 13:06Julien JomierResolutionopen => fixed
2009-03-28 17:10Julien JomierStatusresolved => closed
2009-03-28 17:10Julien JomierFixed in Version1.3 => 1.4

Notes
(0014221)
Julien Jomier   
2008-11-28 10:00   
Could you describe the problem more precisely?
(0014222)
Rolf Eike Beer   
2008-11-28 10:48   
If you click on the name of the build host in test overview for example you get a PDO exception because a non-object is used as base for query(). That non-object is probably "true".
(0014224)
Julien Jomier   
2008-11-28 11:21   
I cannot reproduce the error. Could you tell me which PHP page is causing trouble? Are you able to access other pages?
(0014227)
Rolf Eike Beer   
2008-11-28 12:19   
viewSite.php

Error is:

PDOException Object ( [message:protected] => SQLSTATE[08006] [7] FATAL: the database system is starting up [string:private] => [code:protected] => 0 [file:protected] => SERVERROOT/htdocs/cdash/pdo.php [line:protected] => 260 [trace:private] => Array ( [0] => Array ( [file] => SERVERROOT/htdocs/cdash/pdo.php [line] => 260 [function] => __construct [class] => PDO [type] => -> [args] => Array ( [0] => pgsql:host=localhost;dbname=cdash [1] => cdash [2] => 5%hBV1p9pD ) ) [1] => Array ( [file] => SERVERROOT/htdocs/cdash/login.php [line] => 132 [function] => pdo_select_db [args] => Array ( [0] => cdash [1] => 1 ) ) [2] => Array ( [file] => SERVERROOT/htdocs/cdash/login.php [line] => 189 [function] => auth [args] => Array ( [0] => ) ) [3] => Array ( [file] => SERVERROOT/htdocs/cdash/viewSite.php [line] => 21 [args] => Array ( [0] => SERVERROOT/htdocs/cdash/login.php ) [function] => include ) ) [errorInfo] => )
 Fatal error: Call to a member function query() on a non-object in SERVERROOT/htdocs/cdash/pdo.php on line 207

As the subject says: you need a database that is not MySQL (in my case PostgreSQL 8.2.11)
(0014228)
Julien Jomier   
2008-11-28 13:06   
Should be all better now, otherwise let me know. Thanks for the report!