mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-30 19:22:58 +08:00
fix(chat2db-oracle): fix oracle function struct
This commit is contained in:
@ -172,9 +172,11 @@ public class OracleMetaData extends DefaultMetaService implements MetaData {
|
|||||||
function.setDatabaseName(databaseName);
|
function.setDatabaseName(databaseName);
|
||||||
function.setSchemaName(schemaName);
|
function.setSchemaName(schemaName);
|
||||||
function.setFunctionName(functionName);
|
function.setFunctionName(functionName);
|
||||||
if (resultSet.next()) {
|
StringBuilder bodyBuilder = new StringBuilder("CREATE ");
|
||||||
function.setFunctionBody("CREATE " + resultSet.getString("TEXT"));
|
while (resultSet.next()) {
|
||||||
|
bodyBuilder.append(resultSet.getString("TEXT")).append("\n");
|
||||||
}
|
}
|
||||||
|
function.setFunctionBody(bodyBuilder.toString());
|
||||||
return function;
|
return function;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user