Releases: macbre/sql-metadata
Releases · macbre/sql-metadata
Improved handling of DISTINCT keyword and case-insensitivity
Bug fixes
get_query_columns does not return nothing if parsing SELECT DISTINCT #72 (reported by @benzzdan)
get_query_tables() CTE Case Sensitive for SELECT #71 (reported by @nehalj12)
Other
Install black code formatter #63
build(deps-dev): bump coverage from 5.3 to 5.3.1 #75
build(deps-dev): bump pytest from 6.2.0 to 6.2.1 #74
build(deps-dev): bump pytest from 6.1.2 to 6.2.0 #73
CI: cache pip dependencies #70
build(deps-dev): bump pytest from 6.1.1 to 6.1.2 #69
Use sqlparse 0.4.1
sqlparse
- Remove debug print statement (andialbrecht/sqlparse@ab53a4b)
sqlparse updated
- Bump pytest from 6.0.1 to 6.0.2 #62
- Bump coverage from 5.2.1 to 5.3 #61
- build(deps-dev): bump pytest from 6.0.2 to 6.1.0 #64
get_query_tables
doesn't respect table names with dashes in their name #60- get_query_columns: improve handling of queries with "IS NULL" conditions #65
- build(deps-dev): bump pytest from 6.1.0 to 6.1.1 #66
- build(deps): bump sqlparse from 0.3.1 to 0.4.0 #67
Tables aliases handling improved
- #38
bug
- Ignoring Multiple FROM tables when they prefixed by DATASET (reported by @rubensmussicury) - #52
bug
- Incorrect column names when table aliases are used (reported by @akku1506 and fixed in #58) - #55
dependencies
- Bump coverage from 5.2 to 5.2.1 (by @dependabot[bot]) - #56
dependencies
- Bump pytest from 5.4.3 to 6.0.0 (by @dependabot[bot]) - #57
dependencies
- Bump pytest from 6.0.0 to 6.0.1 (by @dependabot[bot])
Improved handling of queries with GROUP BY
SELECT s.cust_id,count(s.cust_id) FROM SH.sales s GROUP BY s.cust_id
This query was giving s.cust_id
as a table name instead of SH.sales
. This is now fixed by #54.
Support for database.schema.table notation
- #45 -
get_query_tables
: Add support fordatabase.schema.table
notation (thanks to @dylanhogg) - #46 - installed dependabot that keeps dependencies up to date
- removed TravisCI integration
- automated PyPI publish on new release creation