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
4747 using ( var reader = cmd . ExecuteReader ( ) )
4848 while ( reader . Read ( ) ) {
4949 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 ) ;
5152 var descriptor = sequence . SequenceDescriptor ;
5253
5354 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.") ;
5556 }
5657
5758 descriptor . StartValue = valueReader ( reader , 3 ) ;
You can’t perform that action at this time.
0 commit comments