yhat / db.py

db.py is an easier way to interact with your databases
BSD 2-Clause "Simplified" License
1.22k stars 111 forks source link

Feature/fix schema specified #53

Closed szkielet closed 9 years ago

szkielet commented 9 years ago

Fix for two problems associated with schema_specified feature:

First: If you pass 'schemas' parameter in DB constructor, function refresh_schema never use schema_specified query. Reason: First if in refresh_schema is always False (because of 'schema_specified' in self._query_templates is always False)

Second: If you use this schema_specified_query for MySQL you will get: TypeError: not all arguments converted during string formatting (because of {table} in query}