Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump github.com/huandu/go-sqlbuilder from 1.27.3 to 1.34.0 #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 11, 2025

Bumps github.com/huandu/go-sqlbuilder from 1.27.3 to 1.34.0.

Release notes

Sourced from github.com/huandu/go-sqlbuilder's releases.

v1.34.0

What's Changed

  • #189: Use args in LIMIT and/or OFFSET expression to optimize query plan caching.
  • #190: Ignore empty values and expressions to prevent syntax error.
  • #191: Support RETURNING in InsertBuilder.
    • See discussion in #83 for details.

Full Changelog: huandu/go-sqlbuilder@v1.33.0...v1.34.0

v1.33.0: Support LATERAL keyword

What's Changed

  • Support LATERAL keyword #181 #183 (Thanks @​therve for your ideas)
    • Add a new method LateralAs in SelectBuilder to build LATERAL JOIN expression. Read sample code for LateralAs on GoDoc for details.

Full Changelog: huandu/go-sqlbuilder@v1.32.0...v1.33.0

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

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: huandu/go-sqlbuilder@v1.31.0...v1.32.0

New feature: Ignore empty content to prevent the output of incorrect SQL

What's Changed

  • Cond and WhereClause will actively ignore empty content to prevent the output of syntactically incorrect SQL #175 by @​rodionovv
    • In previous version, Cond and WhereClause can produce syntax errors when any of required parameters field, op or expr is empty. This release fixes this issue by actively ignore these invalid values.
    • Here are samples affected by this change.
      • Select("*").From("t").Where("").String()
        • Now: SELECT * FROM t
        • Previous version: SELECT * FROM t WHERE
      • sb := Select("*").From("t"); sb.Where(sb.Equal("", 0))
        • Now: SELECT * FROM t
        • Previous version: SELECT * FROM t WHERE = ?

New Contributors

... (truncated)

Commits
  • 87b9c12 Merge pull request #191 from huandu/feature/returning-id
  • a8ccad7 fix #83: Support RETURNING in InsertBuilder
  • e83d572 Merge pull request #189 from huandu/feature/limit-offset-using-args
  • 2253d89 Merge pull request #190 from huandu/feature/prevent-syntax-error-with-zero-va...
  • 06070c6 generate FALSE if values is empty in IN/ALL/SOME/ANY
  • fc56bc8 ignore empty values and expressions to prevent syntax error
  • c5c2c82 fix #186: use args in LIMIT and/or OFFSET expression
  • b0b0b02 fix #184: fix SQL syntax error in WITH ... UPDATE ... FROM
  • c4b67f5 Merge pull request #183 from huandu/feature/select-lateral-derived-table
  • bc2ceb4 fix #181: Support LATERAL keyword
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/huandu/go-sqlbuilder](https://github.com/huandu/go-sqlbuilder) from 1.27.3 to 1.34.0.
- [Release notes](https://github.com/huandu/go-sqlbuilder/releases)
- [Commits](huandu/go-sqlbuilder@v1.27.3...v1.34.0)

---
updated-dependencies:
- dependency-name: github.com/huandu/go-sqlbuilder
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants