mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Update Gbase
This commit is contained in:
@@ -259,23 +259,23 @@ WHEN NOT MATCHED THEN
|
||||
SetupParameters(cmd, dt, schema);
|
||||
|
||||
bool insertOneByOne = false;
|
||||
foreach (GbsParameter param in cmd.Parameters)
|
||||
{
|
||||
if (param.GbsType == GbsType.NVarChar ||
|
||||
param.GbsType == GbsType.Guid ||
|
||||
param.GbsType == GbsType.Byte ||
|
||||
param.GbsType == GbsType.Blob ||
|
||||
param.GbsType == GbsType.Text ||
|
||||
param.GbsType == GbsType.Date ||
|
||||
param.GbsType == GbsType.Clob)
|
||||
{
|
||||
// some data type does not support insert cursor feature.
|
||||
// insert data row by row.
|
||||
//foreach (GbsParameter param in cmd.Parameters)
|
||||
//{
|
||||
// if (param.GbsType == GbsType.NVarChar ||
|
||||
// param.GbsType == GbsType.Guid ||
|
||||
// param.GbsType == GbsType.Byte ||
|
||||
// param.GbsType == GbsType.Blob ||
|
||||
// param.GbsType == GbsType.Text ||
|
||||
// param.GbsType == GbsType.Date ||
|
||||
// param.GbsType == GbsType.Clob)
|
||||
// {
|
||||
// // some data type does not support insert cursor feature.
|
||||
// // insert data row by row.
|
||||
// insertOneByOne = true;
|
||||
// break;
|
||||
// }
|
||||
//}
|
||||
insertOneByOne = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (insertOneByOne)
|
||||
{
|
||||
cmd.Prepare();
|
||||
|
Reference in New Issue
Block a user