Class Db2ObjectNameQuoter

java.lang.Object
io.debezium.connector.db2.Db2ObjectNameQuoter

public class Db2ObjectNameQuoter extends Object
By default, names in Db2 are upper case. Unless quoted, any name in a SQL statement will interpreted as the equivalent upper case string.
Author:
Luis Garcés-Erice
  • Constructor Details

    • Db2ObjectNameQuoter

      public Db2ObjectNameQuoter()
  • Method Details

    • quoteNameIfNecessary

      public static String quoteNameIfNecessary(String name)
      This function quotes a table or schema name in Db2 if the name contains at least one lower case character.
      Parameters:
      name - The name of the object.
      Returns:
      The name of object between quotes if it is not all upper-case.