def date_extract_sql(self, lookup_type, field_name):
        # sqlite doesn't support extract, so we fake it with the user-defined
        # function django_extract that's registered in connect(). Note that
        # single quotes are used because this is a string (and could otherwise
        # cause a collision with a field name).
        return "django_extract('%s', %s)" % (lookup_type.lower(), field_name)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/db/backends/sqlite3/base.py/DatabaseOperations.date_extract_sql/original