Java liquibase valueComputed字段中的当前架构

Java liquibase valueComputed字段中的当前架构,java,postgresql,liquibase,Java,Postgresql,Liquibase,作为变更集的一部分,我有一个。但是,当使用valueComputed时,我希望能够参考当前方案。因为现在我有一个: <update tableName="foo"> <column name="name" valueComputed="(select b.name from bar b where baz.id = b.id)" /> </update> 注意,生成的更新附带了一些_方案,我希望能够在我的valueComputed字段中访问它。可能吗

作为变更集的一部分,我有一个。但是,当使用valueComputed时,我希望能够参考当前方案。因为现在我有一个:

<update tableName="foo">
    <column name="name" valueComputed="(select b.name from bar b where baz.id = b.id)" />
</update>

注意,生成的更新附带了一些_方案,我希望能够在我的valueComputed字段中访问它。可能吗?

您使用的是哪种DBMS?我使用的是postgresql 9.4。据我所知,Liquibase会向JDBC驱动程序询问当前模式。驱动程序只需运行
select current\u schema()
。因此,在SQLI中使用
current_schema()
应该是安全的。我认为
valueComputed
具有有限的“识别”功能,并且没有属性/参数替换功能。因此,liquibase中没有可以将模式插入
valueComputed
的SQL中的函数。因此,@a_horse_和_no_name建议在SQL中使用数据库函数来检索当前模式可能是唯一的解决方案。您使用的是哪种DBMS?我使用的是postgresql 9.4。据我所知,Liquibase向JDBC驱动程序询问当前模式。驱动程序只需运行
select current\u schema()
。因此,在SQLI中使用
current_schema()
应该是安全的。我认为
valueComputed
具有有限的“识别”功能,并且没有属性/参数替换功能。因此,liquibase中没有可以将模式插入
valueComputed
的SQL中的函数。因此,@a_horse_和_no_name建议在SQL中使用数据库函数来检索当前模式可能是唯一的解决方案。
UPDATE some_scheme.foo SET name = (select b.name from bar b where  baz.id = b.id)