Skip to content

[18.0][FIX] base_external_dbsource_mssql: convert string query to TextClause expected by sqlalchemy#398

Merged
OCA-git-bot merged 1 commit intoOCA:18.0from
ForgeFlow:18.0-imp-base_external_dbsource_mssql-alchemy_text
Apr 7, 2026
Merged

[18.0][FIX] base_external_dbsource_mssql: convert string query to TextClause expected by sqlalchemy#398
OCA-git-bot merged 1 commit intoOCA:18.0from
ForgeFlow:18.0-imp-base_external_dbsource_mssql-alchemy_text

Conversation

@JordiMForgeFlow
Copy link
Copy Markdown
Contributor

The execute method expects as the query not a plain string, but an object. The easiest is to convert it to a TextClause object: https://docs.sqlalchemy.org/en/20/core/connections.html#sqlalchemy.engine.Connection.execute

Examples are actually provided in the documentation: https://docs.sqlalchemy.org/en/20/core/sqlelement.html#sqlalchemy.sql.expression.TextClause

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @anddago78,
some modules you are maintaining are being modified, check this out!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 5, 2026

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Apr 5, 2026
@JordiMForgeFlow
Copy link
Copy Markdown
Contributor Author

@OCA/tools-maintainers could this one be merged?

@pedrobaeza pedrobaeza added this to the 18.0 milestone Apr 7, 2026
Copy link
Copy Markdown
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

@OCA-git-bot
Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-398-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 043f427 into OCA:18.0 Apr 7, 2026
5 of 7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at e773605. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved merged 🎉 stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants