Fork me on GitHub
Subscribe 2

Ticket #517 (fixed enhancement)

Lazy connect to database

  • Created: 2011-10-25 15:11:23
  • Reported by: Franz
  • Assigned to: Franz
  • Milestone: 2.0-alpha1
  • Component: database
  • Priority: normal

Only connect to the database via PDO if we actually execute a query.

History

FSX 2011-10-25 17:42:49

Why? Is there a case where there's no DB connection needed?

Franz 2011-10-25 20:27:31

Maybe if an error happens before any queries are executed.

Franz 2011-10-25 21:31:04

Also, this is meant to be usable for other people in their projects, too.

Franz 2011-11-01 23:40:16

Commit 22dd619 to database master

#517: Only connect to the database if needed.

Franz 2011-11-01 23:40:57

  • Status changed from open to fixed.

Implemented in database/22dd619.

Franz 2011-11-02 09:32:07

Commit 16b62d3 to database master

Implement quoteTable() and quoteColumn() for PostgreSQL.
Related to #517.