Update Gbase

This commit is contained in:
sunkaixuan
2025-09-12 11:38:04 +08:00
parent a9bd90994c
commit 3c2ab05cfb

View File

@@ -259,23 +259,23 @@ WHEN NOT MATCHED THEN
SetupParameters(cmd, dt, schema); SetupParameters(cmd, dt, schema);
bool insertOneByOne = false; bool insertOneByOne = false;
foreach (GbsParameter param in cmd.Parameters) //foreach (GbsParameter param in cmd.Parameters)
{ //{
if (param.GbsType == GbsType.NVarChar || // if (param.GbsType == GbsType.NVarChar ||
param.GbsType == GbsType.Guid || // param.GbsType == GbsType.Guid ||
param.GbsType == GbsType.Byte || // param.GbsType == GbsType.Byte ||
param.GbsType == GbsType.Blob || // param.GbsType == GbsType.Blob ||
param.GbsType == GbsType.Text || // param.GbsType == GbsType.Text ||
param.GbsType == GbsType.Date || // param.GbsType == GbsType.Date ||
param.GbsType == GbsType.Clob) // param.GbsType == GbsType.Clob)
{ // {
// some data type does not support insert cursor feature. // // some data type does not support insert cursor feature.
// insert data row by row. // // insert data row by row.
// insertOneByOne = true;
// break;
// }
//}
insertOneByOne = true; insertOneByOne = true;
break;
}
}
if (insertOneByOne) if (insertOneByOne)
{ {
cmd.Prepare(); cmd.Prepare();