Always include a WHERE clause to make generation simpler.
Allow testing with NULL patterns, which provoked the bug.
New test with all params NULL.
Merge pull request #33 from MMcM/sqltables-test-2

Fix SQLTables when all the patterns are NULL