Greg Sabino Mullane wrote:
A member variable avoids putting in any ugly "if db == postgres" lines, and allows easy future handling of other date issues. I'm not sure what function you are saying should be overridden?
I believe the idea is to have separate _classes_ for each DB system, so "db == postgres" would not be necessary because you'd have a separate class for PostgreSQL. In that class, you should simply override the function realTimestamps() and plainly return true. That would be proper object-oriented design, and it's a very common practice.
Timwi