getDBInfo method
void
getDBInfo(
- TSchemaType aSchemaType,
- String aSchemaObjectName,
- String aReturnField,
- TStrings aList,
Implementation
void getDBInfo(TSchemaType aSchemaType, String aSchemaObjectName,
String aReturnField, TStrings aList) {
if (_sqlTransaction == null) {
databaseError(SErrConnTransactionnSet);
}
final qry = TCustomSQLQuery(null);
try {
qry.transaction = _sqlTransaction;
qry.database = this;
qry.parseSQL = false;
qry.setSchemaInfo(aSchemaType, aSchemaObjectName, "");
qry.open();
aList.clear();
while (!qry.eof) {
aList.add(qry.fieldByName(aReturnField).asString.trim());
qry.next();
}
} finally {
qry.free();
}
}