Skip to content

Commit 3b40faa

Browse files
committed
Mysql: millisecond extraction improvement
1 parent 9c93574 commit 3b40faa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Orm/Xtensive.Orm.MySql/Sql.Drivers.MySql/v5_0/Translator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
1+
// Copyright (C) 2003-2010 Xtensive LLC.
22
// All rights reserved.
33
// For conditions of distribution and use, see license.
44
// Created by: Malisa Ncube
@@ -427,7 +427,7 @@ public override string Translate(SqlCompilerContext context, SqlExtract node, Ex
427427
case ExtractSection.Entry:
428428
return "(extract(";
429429
case ExtractSection.Exit:
430-
return isMillisecond ? ") % 1000)" : "))";
430+
return isMillisecond ? ") / 1000)" : "))";
431431
default:
432432
return base.Translate(context, node, section);
433433
}

0 commit comments

Comments
 (0)