Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,14 @@ protected override Task BulkInsert<T>(

using var bulkCopy = new OracleBulkCopy(connection, options.CopyOptions);

bulkCopy.DestinationTableName = tableName;
// When tableName is the SQL-quoted fully qualified name (direct insert path), use the
// unquoted plain table name so ODP.NET does not apply double schema qualification
// (e.g. SchemaX.SchemaX.TABLE_NAME) when a default schema is configured via HasDefaultSchema.
var destinationTableName = tableName == tableInfo.QuotedTableName
? tableInfo.TableName
: tableName;

bulkCopy.DestinationTableName = destinationTableName;
bulkCopy.BatchSize = options.BatchSize;
bulkCopy.BulkCopyTimeout = options.GetCopyTimeoutInSeconds();

Expand Down
Loading