changed wildcard escape logic
Merge pull request #382 from alkalinecoffee/master

Wildcard escaping with other databases