Skip to content

Commit 5387951

Browse files
committed
Sqlite: time resolution increased
1 parent ffd0e0d commit 5387951

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Orm/Xtensive.Orm.Sqlite/Sql.Drivers.Sqlite/v3/Compiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal class Compiler : SqlCompiler
2020
private const string DateWithZeroTimeFormat = "%Y-%m-%d 00:00:00.000";
2121
#if NET6_0_OR_GREATER //DO_DATEONLY
2222
private const string DateFormat = "%Y-%m-%d";
23-
private const string TimeFormat = "%H:%M:%f";
23+
private const string TimeFormat = "%H:%M:%f0000";
2424
private const string TimeToStringFormat = "%H:%M:%f0000";
2525
#endif
2626
private const string DateTimeFormat = "%Y-%m-%d %H:%M:%f";

Orm/Xtensive.Orm.Sqlite/Sql.Drivers.Sqlite/v3/Translator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal class Translator : SqlTranslator
2828
public override string DateOnlyFormatString => @"\'yyyy\-MM\-dd\'";
2929

3030
/// <inheritdoc/>
31-
public override string TimeOnlyFormatString => @"\'HH\:mm\:ss.fff\'";
31+
public override string TimeOnlyFormatString => @"\'HH\:mm\:ss.fffffff\'";
3232
#endif
3333

3434
public virtual string DateTimeOffsetFormatString => @"\'yyyy\-MM\-dd HH\:mm\:ss.fffK\'";

Orm/Xtensive.Orm.Sqlite/Sql.Drivers.Sqlite/v3/TypeMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal class TypeMapper : Sql.TypeMapper
2626
private const string DateTimeOffsetFormat = "yyyy-MM-dd HH:mm:ss.fffK";
2727
private const string DateTimeFormat = "yyyy-MM-dd HH:mm:ss.fffffff";
2828
private const string DateFormat = "yyyy-MM-dd";
29-
private const string TimeFormat = "HH:mm:ss.fff";
29+
private const string TimeFormat = "HH:mm:ss.fffffff";
3030

3131
public override object ReadBoolean(DbDataReader reader, int index)
3232
{

0 commit comments

Comments
 (0)