File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,7 @@ public class Oracle9iDialect : Oracle8iDialect
10
10
public override string CurrentTimestampSelectString =>
11
11
$ "select { CurrentTimestampSQLFunctionName } from dual";
12
12
13
- public override string CurrentTimestampSQLFunctionName
14
- {
15
- get
16
- {
17
- // the standard SQL function name is current_timestamp...
18
- return "current_timestamp" ;
19
- }
20
- }
13
+ public override string CurrentTimestampSQLFunctionName => "localtimestamp" ;
21
14
22
15
// Current_timestamp is a timestamp with time zone, so it can always be converted back to UTC.
23
16
/// <inheritdoc />
@@ -44,6 +37,9 @@ protected override void RegisterFunctions()
44
37
{
45
38
base . RegisterFunctions ( ) ;
46
39
40
+ RegisterFunction (
41
+ "current_timestamp" ,
42
+ new NoArgSQLFunction ( "localtimestamp" , NHibernateUtil . LocalDateTime , false ) ) ;
47
43
RegisterFunction (
48
44
"current_utctimestamp" ,
49
45
new SQLFunctionTemplate ( NHibernateUtil . UtcDateTime , "SYS_EXTRACT_UTC(current_timestamp)" ) ) ;
You can’t perform that action at this time.
0 commit comments