File tree Expand file tree Collapse file tree
src/PhenX.EntityFrameworkCore.BulkInsert.Oracle Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,14 @@ protected override Task BulkInsert<T>(
5959
6060 using var bulkCopy = new OracleBulkCopy ( connection , options . CopyOptions ) ;
6161
62- bulkCopy . DestinationTableName = tableName ;
62+ // When tableName is the SQL-quoted fully qualified name (direct insert path), use the
63+ // unquoted plain table name so ODP.NET does not apply double schema qualification
64+ // (e.g. SchemaX.SchemaX.TABLE_NAME) when a default schema is configured via HasDefaultSchema.
65+ var destinationTableName = tableName == tableInfo . QuotedTableName
66+ ? tableInfo . TableName
67+ : tableName ;
68+
69+ bulkCopy . DestinationTableName = destinationTableName ;
6370 bulkCopy . BatchSize = options . BatchSize ;
6471 bulkCopy . BulkCopyTimeout = options . GetCopyTimeoutInSeconds ( ) ;
6572
You can’t perform that action at this time.
0 commit comments