[PyGreSQL] inserttable() NULL problem

Christoph Zwerschke cito at online.de
Wed Sep 12 17:20:04 EDT 2007


Ryan Sobash wrote:
> I am having an issue inserting NULL values into a database using the 
> inserttable() method.
> 
> The data are being entered into a column of type double precision. I 
> have entered NULLs into it using the query() method, but want to take 
> advantage of the increased speed of the inserttable() method.
> 
> I have tried various strings to indicate a NULL value: "None", "\N", 
> "False", "NULL". This is the error I receive:

Instead of using strings, try using a Python None value.

-- Christoph


More information about the PyGreSQL mailing list