Re: money types, decimal module

Karsten Hilbert <[email protected]> Thu, 18 Nov 2004 09:18:40 +0100
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
> here is my code i think is the problem
> cur.execute("INSERT INTO DailyTakings VALUES (%s,%s, %s, 
> %s,%s,%.2f,%.2f,%.2f,%.2f,%.2f,%.2f,%.2f,%.2f,%.2f,%.2f,%.2f,%.2f,%.2f)",
Oh, I think pypgsql wants you to use %s everywhere regardless
of argument type.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8