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

[问题咨询] #802

Open
CarsonYue opened this issue Mar 21, 2025 · 1 comment
Open

[问题咨询] #802

CarsonYue opened this issue Mar 21, 2025 · 1 comment

Comments

@CarsonYue
Copy link

CarsonYue commented Mar 21, 2025

Description

post put delete 和 远程函数是属于同一个事务吗?当配置了远程函数在post后执行时:如果是同一个事务,先执行了 insert into a,后在远程函数中select a 查询不到呢。

@TommyLemon
Copy link
Collaborator

TommyLemon commented Mar 21, 2025

默认整个请求是一个事务,事务没完成就查不到新写入的记录,可以直接引用 A 中的字段值,或者远程函数里 getParser().commit() 来提前提交事务,还可以拆分成两次请求

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants