Skip to content

Commit

Permalink
- 同上
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Nov 24, 2023
1 parent 514c1cd commit 2ed254d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Providers/FreeSql.Provider.Dameng/DamengDbFirst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ DmDbType GetSqlDbType(DbColumnInfo column)

case "char(36)": return DmDbType.Char;
}
if (dbfull?.StartsWith("datetime(") == true) return DmDbType.DateTime;
if (dbfull?.StartsWith("datetime(") == true)
{
_dicDbToCs.TryAdd(dbfull, _dicDbToCs["timestamp(6)"]);
return DmDbType.DateTime;
}
switch (column.DbTypeText?.ToLower())
{
case "bit":
Expand Down
6 changes: 5 additions & 1 deletion Providers/FreeSql.Provider.Odbc/Dameng/OdbcDamengDbFirst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ OdbcType GetSqlDbType(DbColumnInfo column)

case "char(36)": return OdbcType.Char;
}
if (dbfull?.StartsWith("datetime(") == true) return OdbcType.DateTime;
if (dbfull?.StartsWith("datetime(") == true)
{
_dicDbToCs.TryAdd(dbfull, _dicDbToCs["timestamp(6)"]);
return OdbcType.DateTime;
}
switch (column.DbTypeText?.ToLower())
{
case "bit":
Expand Down

0 comments on commit 2ed254d

Please sign in to comment.