Created by: dergachev
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