TEIID-2437 fixing type mismatch in sys.virtualdatabases