Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002753 [Quercus] minor always 06-27-08 07:11 08-07-08 16:37
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.2.0 Product Version 3.1.6
  Product Build
Summary 0002753: postgres driver
Description (rep by atijms )

I was trying to get a DB connection to a PostgreSQL DB from PHP using Quercus. Without configuring a JDNI datasource, Quercus attempts to instantiate the postgresql driver (org.postgresql.Driver). However, a while later Quercus.findDatabase tries to cast this into a javax.sql.Datasource. Of course this always fails, since org.postgresql.Driver does not implement this interface.

The offending line seems to be in PostgresModule, line 276:


String driver = "org.postgresql.Driver";
String url = "jdbc:postgresql://" [^] + host + ":" + port + "/" + dbName;

Postgres postgres = new Postgres(env, host, userName, password, dbName, port, driver, url);
Which eventually leads to a call in Quercus.java, line 444:


Class cls = loader.loadClass(driver);

return (DataSource)cls.newInstance();
So it seems like PostgresModule should not be providing "org.postgresql.Driver" as the driver name, right?

Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003301)
ferg
08-07-08 16:37

php/43s0
 

- Issue History
Date Modified Username Field Change
06-27-08 07:11 ferg New Issue
08-07-08 16:37 ferg Note Added: 0003301
08-07-08 16:37 ferg Assigned To  => ferg
08-07-08 16:37 ferg Status new => closed
08-07-08 16:37 ferg Resolution open => fixed
08-07-08 16:37 ferg Fixed in Version  => 3.2.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker