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.30.1 to 1.32.0 in the all-dependencies group across 1 directory #9

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 6, 2024

Bumps the all-dependencies group with 1 update in the / directory: github.com/huandu/go-sqlbuilder.

Updates github.com/huandu/go-sqlbuilder from 1.30.1 to 1.32.0

Release notes

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

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

Full Changelog: huandu/go-sqlbuilder@v1.30.0...v1.31.0

Commits
  • 5067ee7 Merge pull request #180 from huandu/bug/cond-misuse
  • bb320aa Merge pull request #179 from huandu/feature/cte-table-for-update-delete
  • eb375d5 fix #178: avoid stackoverflow when Cond is misused
  • 96c9b25 refs #176: Automatically ref names of CTETables in DELETE and UPDATE statement
  • 134c901 Merge pull request #177 from rodionovv/flavor_getter
  • 4b59c4a new: Added Flavor method to Builder interface
  • e7bb45c new: flavor getters
  • be6fb8b Merge pull request #175 from rodionovv/string-validation
  • 961c268 test: Added test cases for empty strings in where clause
  • acb75ac fix #172: added checks for empty strings in conds.
  • See full diff 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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the all-dependencies group with 1 update in the / directory: [github.com/huandu/go-sqlbuilder](https://github.com/huandu/go-sqlbuilder).


Updates `github.com/huandu/go-sqlbuilder` from 1.30.1 to 1.32.0
- [Release notes](https://github.com/huandu/go-sqlbuilder/releases)
- [Commits](huandu/go-sqlbuilder@v1.30.1...v1.32.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 6, 2024
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 go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants