This has been fixed upstream with a slightly different patch. See http://sourceforge.net/mailarchive/message.php?msg_id=27799824 The fix will be included in the next version of SQLObject - see http://sourceforge.net/mailarchive/message.php?msg_id=28310875 -- Neil Muller