File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Provider/src/FirebirdSql.Data.FirebirdClient Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,12 @@ public static List<object> ParseDatabaseInfo(byte[] buffer)
130
130
}
131
131
break ;
132
132
133
+ case IscCodes . isc_info_creation_date :
134
+ var date = TypeDecoder . DecodeDate ( ( int ) VaxInteger ( buffer , pos , 4 ) ) ;
135
+ var time = TypeDecoder . DecodeTime ( ( int ) VaxInteger ( buffer , pos + 4 , 4 ) ) ;
136
+ info . Add ( date . Add ( time ) ) ;
137
+ break ;
138
+
133
139
default :
134
140
throw new ArgumentOutOfRangeException ( nameof ( type ) , $ "{ nameof ( type ) } ={ type } ") ;
135
141
}
Original file line number Diff line number Diff line change @@ -386,6 +386,15 @@ public Task<string> GetCryptPluginAsync(CancellationToken cancellationToken = de
386
386
return GetValueAsync < string > ( IscCodes . fb_info_crypt_plugin , cancellationToken ) ;
387
387
}
388
388
389
+ public DateTime GetCreationDate ( )
390
+ {
391
+ return GetValue < DateTime > ( IscCodes . isc_info_creation_date ) ;
392
+ }
393
+ public Task < DateTime > GetCreationDateAsync ( CancellationToken cancellationToken = default )
394
+ {
395
+ return GetValueAsync < DateTime > ( IscCodes . isc_info_creation_date , cancellationToken ) ;
396
+ }
397
+
389
398
#endregion
390
399
391
400
#region Constructors
You can’t perform that action at this time.
0 commit comments