Ticket #266 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

jDb: no support of different drivers on a same database type

Reported by: laurentj Assigned to:
Priority: low Milestone: Jelix 1.0 RC1
Component: jelix:db Version: 1.0 beta2.1
Severity: major Keywords:
Cc: Php version:
Review: Hosting Provider:
Documentation needed: Blocking:
Blocked By: 101

Description

We couldn't create a driver for jDb which works on a same database of an existing driver. It causes bug in jDao because the driver name is used as the name of a database "type". For example, we couldn't create a special driver for postgresql, called "pgspecial" : jDao generates SQL queries for postgresql only if the driver name is "postgresql". So queries generated for the "pgspecial" driver are bad and not "postgresql" oriented.

Change History

09/11/07 11:15:49 changed by laurentj

  • priority changed from high to low.
  • milestone changed from Jelix 1.0beta3 to Jelix 1.3.

I don't find a good solution for this ticket. The only one information we have for the compiler is the driver name. To have the database type, we have to load the db driver. But we can't since we don't know from which profil we should load the driver.

The only solution is to make work on ticket #101.

10/29/07 11:38:07 changed by laurentj

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from Jelix 1.3 to Jelix 1.0.

Since the ticket #101 is fixed, you can create a dao driver which inherits from the postgresql one's.

Fixed then.

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed