soc.2009.transport: 4e09b675: Working vcard cache

hanzz at soc.pidgin.im hanzz at soc.pidgin.im
Tue Jun 30 02:50:40 EDT 2009


-----------------------------------------------------------------
Revision: 4e09b6757ced5bf78b757d78eac947ad72268701
Ancestor: 14514b1adfebb629e83a08059b870346508ab410
Author: hanzz at soc.pidgin.im
Date: 2009-06-29T15:11:06
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/4e09b6757ced5bf78b757d78eac947ad72268701

Modified files:
        sql.cpp

ChangeLog: 

Working vcard cache

-------------- next part --------------
============================================================
--- sql.cpp	6a364fbe82c7a8bc37fbf2d72cf59f6afe87a641
+++ sql.cpp	ba3b49d82c3c5d43beb29d8a662eca6a636752f5
@@ -395,7 +395,7 @@ bool SQLClass::getVCard(const std::strin
 #endif
     mysqlpp::Row row;
 
-    query << "SELECT vcard FROM "<< p->configuration().sqlPrefix <<"vcards WHERE username=\"" +name+ "\" AND DATE_ADD(timestamp, INTERVAL 1 DAY);";
+    query << "SELECT vcard FROM "<< p->configuration().sqlPrefix <<"vcards WHERE username=\"" +name+ "\" AND NOW() < DATE_ADD(timestamp, INTERVAL 1 DAY);";
 
     res = query.store();
 	if (res) {


More information about the Commits mailing list