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
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.

AttachmentSize
auto_expire_no_db_switching.patch3.42 KB

#1

marcvangend - July 20, 2009 - 21:12
Status:active» fixed

Tested, discussed on IRC and committed to HEAD.

#2

System Message - August 3, 2009 - 21:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.