Current schema in liquibase valueComputed field

I have an as part of a changeset. However when using valueComputed I'd like to be able to refer to the current scheme. Because at the moment I have this:

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

And the issue is that the generated SQL is something like this:

UPDATE some_scheme.foo SET name = (select b.name from bar b where baz.id = b.id) 

Notie that the generated update has some_scheme attached to it, and I'd like to be able to access this in my valueComputed field. Is that possible?

4

Related questions 841 Access restriction on class due to restriction on required library rt.jar? 1371 How to get the current working directory in Java? 491 How to select the nth row in a SQL database table? Related questions 841 Access restriction on class due to restriction on required library rt.jar? 1371 How to get the current working directory in Java? 491 How to select the nth row in a SQL database table? 402 Liquibase lock - reasons? 349 Postgresql GROUP_CONCAT equivalent? 1119 How can I get the current stack trace in Java? 908 Efficiency of Java "Double Brace Initialization"? 698 How do I address unchecked cast warnings? 5 Liquibase preconditions not working Load 6 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like