SQL queries that work for all db types
marcvangend - June 28, 2009 - 23:46
| Project: | Auto Expire |
| Version: | 6.x-1.0-rc1 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | marcvangend |
| Status: | closed |
Jump to:
Description
Instead of having different SQL queries for different db types (mysql/pgsql) as this module does now to handle date/time values, I'd rather use one query that will work on any db type. The patch attached should work in theory, but I have no pgsql testing environment at the moment. I'm also curious if anyone sees any disadvantages to this approach. Tests, reviews and opinions are very welcome.
| Attachment | Size |
|---|---|
| auto_expire_no_db_switching.patch | 3.42 KB |

#1
Tested, discussed on IRC and committed to HEAD.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.