Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Avoid schema/catalog sql generation

$
0
0
I was checking how Generator implementations work, and I was wondering how to generate each script without catalog/schema name before object (for, mainly, script generation purposes).

As I can see, every (or almost) implementation of AbstractSqlGenerator.generateSql uses parametrized Database.escapeObjectName to mount final SQL, even when you explicit specify blank catalogName/schemaName in changelog file.

Supposing that we don't want to generate that schema/catalog in our SQL you could avoid that generation when:      
  • explicit declare blank schemaName and catalogName (could be a high impact, since most people do not explicit declare that tags)
  • set predefined escape character whose will just print object name.
What do you think about that implementations? Is there any workaround or extension that I could do?

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>