File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/v11 Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,12 @@ ORDER BY
47
47
using ( var reader = cmd . ExecuteReader ( ) )
48
48
while ( reader . Read ( ) ) {
49
49
var currentSchema = GetSchema ( reader . GetInt32 ( 0 ) ) ;
50
- var sequence = currentSchema . CreateSequence ( reader . GetString ( 1 ) ) ;
50
+ var sequenceName = reader . GetString ( 1 ) ;
51
+ var sequence = currentSchema . CreateSequence ( sequenceName ) ;
51
52
var descriptor = sequence . SequenceDescriptor ;
52
53
53
54
if ( ! valueReaders . TryGetValue ( reader . GetInt32 ( 2 ) , out var valueReader ) ) {
54
- throw new ArgumentOutOfRangeException ( $ "Type of sequence '{ reader . GetString ( 1 ) } ' is not supported.") ;
55
+ throw new ArgumentOutOfRangeException ( $ "Type of sequence '{ sequenceName } ' is not supported.") ;
55
56
}
56
57
57
58
descriptor . StartValue = valueReader ( reader , 3 ) ;
You can’t perform that action at this time.
0 commit comments