onyxfish/csvkit — pull request #235 by dergachev (2013-11-08 23:13:23+00:00)
Title: Fix csvsqlite choking on STDIN

Curently running `echo -e "a,b,c\n1,2,3" | csvsql` gives this error:

object of type 'file' has no len()

This patch fixes it, as well as adds a test case in `test_csvsql.py` that mocks STDIN.
The error was introduced by pull request #193