Java Code Examples for java.sql.DatabaseMetaData#getSystemFunctions()

The following examples show how to use java.sql.DatabaseMetaData#getSystemFunctions() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DatabaseMetaDataIT.java    From snowflake-jdbc with Apache License 2.0 6 votes vote down vote up
@Test
public void testGetFunctions() throws SQLException
{
  try (Connection connection = getConnection())
  {
    DatabaseMetaData metadata = connection.getMetaData();
    String supportedStringFuncs = metadata.getStringFunctions();
    assertEquals(StringFunctionsSupported, supportedStringFuncs);

    String supportedNumberFuncs = metadata.getNumericFunctions();
    assertEquals(NumericFunctionsSupported, supportedNumberFuncs);

    String supportedSystemFuncs = metadata.getSystemFunctions();
    assertEquals(SystemFunctionsSupported, supportedSystemFuncs);
  }
}