mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 10:55:02 +08:00
Update questdb
This commit is contained in:
@@ -80,6 +80,7 @@ namespace SqlSugar
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public override void CheckConnection()
|
public override void CheckConnection()
|
||||||
{
|
{
|
||||||
|
this.CheckConnectionBefore(this.Connection);
|
||||||
if (this.Connection.State != ConnectionState.Open)
|
if (this.Connection.State != ConnectionState.Open)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -104,6 +105,7 @@ namespace SqlSugar
|
|||||||
Check.Exception(true, ErrorMessage.ConnnectionOpen, ex.Message);
|
Check.Exception(true, ErrorMessage.ConnnectionOpen, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.CheckConnectionAfter(this.Connection);
|
||||||
}
|
}
|
||||||
public override void SetCommandToAdapter(IDataAdapter dataAdapter, DbCommand command)
|
public override void SetCommandToAdapter(IDataAdapter dataAdapter, DbCommand command)
|
||||||
{
|
{
|
||||||
@@ -170,15 +172,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
sqlParameter.Value = (sqlParameter.Value).ToString();
|
sqlParameter.Value = (sqlParameter.Value).ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (sqlParameter.DbType == System.Data.DbType.Boolean)
|
|
||||||
{
|
|
||||||
sqlParameter.DbType = System.Data.DbType.String;
|
|
||||||
if (sqlParameter.Value != null)
|
|
||||||
{
|
|
||||||
sqlParameter.Value = sqlParameter.Value.ObjToString().ToLower();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
++index;
|
++index;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ namespace SqlSugar
|
|||||||
this.Parameters.Add(new SugarParameter(parameterName, value));
|
this.Parameters.Add(new SugarParameter(parameterName, value));
|
||||||
return parameterName;
|
return parameterName;
|
||||||
}
|
}
|
||||||
else if (value is double||value is int || value is long || value is short || value is short || value is byte)
|
else if (value is decimal||value is double||value is int || value is long || value is short || value is short || value is byte)
|
||||||
{
|
{
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user