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);
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();