You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Orm/Xtensive.Orm/Sql/SqlDml.cs
+38-8Lines changed: 38 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -565,6 +565,19 @@ public static SqlFunctionCall DateTimeConstruct(SqlExpression year, SqlExpressio
565
565
}
566
566
567
567
#if NET6_0_OR_GREATER//DO_DATEONLY
568
+
569
+
// SQL Server - DATEFROMPARTS(y, m, d, fractions, precision) https://learn.microsoft.com/en-us/sql/t-sql/functions/datefromparts-transact-sql?view=sql-server-2016
570
+
// Mysql - MAKEDATE(year, dayofyear), propably. https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html
571
+
// Oracle - if x is the number of seconds after midnight on January 1, 1970: TO_DATE( '01/01/1970', 'MM/DD/YYYY') + (x / (24 * 60 * 60))
572
+
// In the examples above, x can be any number, not necessarily an integer.
// PgSql - some magic with string concatination or by using to_timestampt(ticks-in-some-form::numeric)::time https://stackoverflow.com/questions/26198358/postgresql-cast-numeric-to-date-and-format
// SQL Server - TIMEFROMPARTS(h, m, s, fractions, precision) https://learn.microsoft.com/en-us/sql/t-sql/functions/timefromparts-transact-sql?view=sql-server-2016
593
+
// Mysql - addtime (MAKETIME(h, m, s), '00:00:00.<milliseconds>), propably. https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html
0 commit comments