mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 02:44:58 +08:00
Update Core
This commit is contained in:
@@ -17,7 +17,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
sql = sql.Replace("+@", "+:");
|
sql = sql.Replace("+@", "+:");
|
||||||
if (sql.HasValue()&&sql.Contains("@")) {
|
if (sql.HasValue()&&sql.Contains("@")) {
|
||||||
var exceptionalCaseInfo = Regex.Matches(sql, @"\'[^\=]*?\@.*?\'| [\.,\w]+\@[\.,\w]+ | [\.,\w]+\@[\.,\w]+|[\.,\w]+\@[\.,\w]+ ");
|
var exceptionalCaseInfo = Regex.Matches(sql, @"\'[^\=]*?\@.*?\'|[\.,\w]+\@[\.,\w]+ | [\.,\w]+\@[\.,\w]+|[\.,\w]+\@[\.,\w]+ |\d+\@\d");
|
||||||
if (exceptionalCaseInfo != null) {
|
if (exceptionalCaseInfo != null) {
|
||||||
foreach (var item in exceptionalCaseInfo.Cast<Match>())
|
foreach (var item in exceptionalCaseInfo.Cast<Match>())
|
||||||
{
|
{
|
||||||
@@ -139,7 +139,7 @@ namespace SqlSugar
|
|||||||
sqlParameter.OracleDbType = OracleDbType.Clob;
|
sqlParameter.OracleDbType = OracleDbType.Clob;
|
||||||
sqlParameter.Value = parameter.Value;
|
sqlParameter.Value = parameter.Value;
|
||||||
}
|
}
|
||||||
if (parameter.IsArray)
|
if (parameter.IsArray)
|
||||||
{
|
{
|
||||||
sqlParameter.OracleDbType = OracleDbType.Varchar2;
|
sqlParameter.OracleDbType = OracleDbType.Varchar2;
|
||||||
sqlParameter.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
|
sqlParameter.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
|
||||||
|
|||||||
Reference in New Issue
Block a user