Visitar URL original
[问题咨询] · Issue #802 · APIJSON/APIJSON · GitHub
Skip to content

[问题咨询] #802

Description

@CarsonYue

Description

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

Activity

  1. TommyLemon commented on Mar 21, 2025

    @TommyLemon
    Member

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions