DataDictionary dd = getLanguageConnectionContext().getDataDictionary();
// If dictionary version is below 10.2, special case
// getColumnPrivileges and getTablePrivileges since new system tables
// for privileges wouldn't be present.
if (!dd.checkVersion(DataDictionary.DD_VERSION_DERBY_10_2, null))
{
if (queryName.equals("getColumnPrivileges"))
queryName = "getColumnPrivileges_10_1";
if (queryName.equals("getTablePrivileges"))