mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 18:53:12 +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.setSchemaName(schemaName);
|
||||
function.setFunctionName(functionName);
|
||||
if (resultSet.next()) {
|
||||
function.setFunctionBody("CREATE " + resultSet.getString("TEXT"));
|
||||
StringBuilder bodyBuilder = new StringBuilder("CREATE ");
|
||||
while (resultSet.next()) {
|
||||
bodyBuilder.append(resultSet.getString("TEXT")).append("\n");
|
||||
}
|
||||
function.setFunctionBody(bodyBuilder.toString());
|
||||
return function;
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user