Skip to content

Releases: macbre/sql-metadata

sqlparse updated

08 Oct 08:36
5a4b67a
Compare
Choose a tag to compare
  • 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

21 Aug 16:09
Compare
Choose a tag to compare
  • #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

12 Jul 13:27
997cb5c
Compare
Choose a tag to compare
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

15 Jun 19:11
767f7e2
Compare
Choose a tag to compare
  • #45 - get_query_tables: Add support for database.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

sqlparse updated

23 Mar 22:01
143f80c
Compare
Choose a tag to compare
  • #30 - Improved handling of table aliases
  • #39 - Support Python 3.x only
  • #41 - handling of newlines in queries fixed (as reported in #37)
  • #34 - Support for valid syntax for OUTER JOIN

The following bugs were solved by updating sqlparse dependency in #40:

  • #31 - CTE makes get_query_tables() case-sensitive for SELECT
  • #32 - CTE breaks INSERT INTO ... SELECT and DELETE FROM
  • #33 - Add support for ALTER TABLE ... APPEND

v1.5.0

09 Dec 13:49
Compare
Choose a tag to compare

v1.4

08 Dec 13:54
Compare
Choose a tag to compare

v1.3

17 Nov 17:13
Compare
Choose a tag to compare

#17 - Add support for table schemas in get_query_tables()

v1.2

28 Oct 11:58
Compare
Choose a tag to compare
  • #13 - get_query_columns: add support for INSERT queries
  • #12 - handle empty query argument of get_query_tokens
  • #19 - update dependencies
  • #18 - get_query_tables() breaks on INSERT INTO ... SELECT
  • #22 - move normalize_sql to sql-metadata

v1.1.0

14 Feb 21:47
Compare
Choose a tag to compare
  • #10 - Introduce get_query_limit_and_offset()