providing arguements updated

Timothy Smith <timothy-/[email protected]> Fri, 26 Nov 2004 15:35:45 +1000
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
i have since found way around the % limitation only to be hit with a 
different problem
i am trying to perform a modal operation ( it's in order to change DOW 
from starting on a sunday to starting on a monday ) but i get the 
following error
ValueError: unsupported format character ' ' (0x20) at index 317

this is my code

cur.execute("select daily_takings.cash, transactions.for_date from 
transactions, daily_takings, daily_stats where transactions.id = 
daily_takings.id and transactions.for_date >= %s and 
transactions.for_date <= %s and transactions.for_venue = %s and 
(EXTRACT(DOW FROM transactions.for_date)::integer+6) % 7 BETWEEN %s AND 
%s ORDER BY transactions.for_date",
            (FromDate, ToDate, SelectedVenue, FromDay, ToDay));   


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/