Calling a Postgres Function using CGI written in Python

Fuzzydave phillipsd at
Wed May 3 12:04:44 CEST 2006

I did do a google search i have looking through the one python book i
and there are plenty of references for how to write a function in
Python but
not as many on how to call a function stored in postgres using python I
tried the conn.execute(cmi_grn_cost(productCode)) and also the
conn.callproc(cmi_grn_cost(productCode)) commands where conn is the
connection object and cmi_grn_cost() is the the function getting called
Postgres and productCode is the variable to passed.

More information about the Python-list mailing list