mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Update core
This commit is contained in:
@@ -45,7 +45,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
this.Context.Ado.BeginTran();
|
this.Context.Ado.BeginTran();
|
||||||
var result = await _ExecuteCommandAsync();
|
var result = await _ExecuteCommandAsync();
|
||||||
this.Context.Ado.BeginTran();
|
this.Context.Ado.CommitTran();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@@ -91,7 +91,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
this.Context.Ado.BeginTran();
|
this.Context.Ado.BeginTran();
|
||||||
var result = await _ExecuteReturnSnowflakeIdListAsync();
|
var result = await _ExecuteReturnSnowflakeIdListAsync();
|
||||||
this.Context.Ado.BeginTran();
|
this.Context.Ado.CommitTran();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@@ -134,6 +134,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
sqlParameter.OracleDbType = OracleDbType.RefCursor;
|
sqlParameter.OracleDbType = OracleDbType.RefCursor;
|
||||||
}
|
}
|
||||||
|
if (parameter.IsClob)
|
||||||
|
{
|
||||||
|
sqlParameter.OracleDbType = OracleDbType.Clob;
|
||||||
|
}
|
||||||
if (sqlParameter.DbType == System.Data.DbType.Guid)
|
if (sqlParameter.DbType == System.Data.DbType.Guid)
|
||||||
{
|
{
|
||||||
sqlParameter.DbType = System.Data.DbType.String;
|
sqlParameter.DbType = System.Data.DbType.String;
|
||||||
|
@@ -32,7 +32,7 @@ namespace SqlSugar
|
|||||||
then true else false end as IsIdentity,
|
then true else false end as IsIdentity,
|
||||||
case when pcolumn.is_nullable = 'YES'
|
case when pcolumn.is_nullable = 'YES'
|
||||||
then true else false end as IsNullable
|
then true else false end as IsNullable
|
||||||
from (select * from pg_tables where tablename = '{0}' and schemaname='public') ptables inner join pg_class pclass
|
from (select * from pg_tables where upper(tablename) = upper('{0}') and schemaname='public') ptables inner join pg_class pclass
|
||||||
on ptables.tablename = pclass.relname inner join (SELECT *
|
on ptables.tablename = pclass.relname inner join (SELECT *
|
||||||
FROM information_schema.columns
|
FROM information_schema.columns
|
||||||
) pcolumn on pcolumn.table_name = ptables.tablename
|
) pcolumn on pcolumn.table_name = ptables.tablename
|
||||||
|
Reference in New Issue
Block a user