Skip to content

v1.32.0: Enhancements and Bug Fixes in SQL Statement Handling and Error Identification

Latest
Compare
Choose a tag to compare
@huandu huandu released this 06 Nov 04:59
5067ee7

What's Changed

  • NEW: Flavor getters by @rodionovv in #177
    • There is a new method Flavor() in Builder to get current flavor set in a builder.
  • NEW: Automatically reference names of CTETables in DELETE and UPDATE statements. #179
    • Based on the discussion in issue #176, the capability previously used with CTETable to automatically include the CTE table name in the FROM clause of SELECT statements has now been extended to UPDATE and DELETE statements.
  • FIX: Avoid stack overflow when Cond is misused. #180
    • Based on the discussion in issue #178, users may call this method to create Cond for building various conditions, which is a misuse, but we cannot completely prevent this error.
    • To facilitate problem identification for users, in the event of misuse of NewCond(), the generated SQL will include the pattern /* INVALID ARG $n */, where n is the sequence number of the problematic variable, allowing users to quickly pinpoint the issue.

Full Changelog: v1.31.0...v1.32.0