scraperwiki / dumptruck

Painlessly move data in and out of a SQLite database.
http://sensiblecode.io
BSD 2-Clause "Simplified" License
43 stars 11 forks source link

Nones are returned in place of the empty string on a TEXT NOT NULL column #10

Closed tlevine closed 10 years ago

tlevine commented 12 years ago

The schema is something like this

CREATE TABLE debt (                                                                                                                         
  [City] TEXT NOT NULL,
);

And here's the problem.

In [7]: dt.execute("select City from debt where City = ''")
Out[7]: 
[OrderedDict([(u'City', None)]),
 OrderedDict([(u'City', None)]),
 OrderedDict([(u'City', None)])]
pwaller commented 10 years ago

I'm closing old issues so that we can pluck signal from the noise. Please reopen if you encounter this or believe it is important.