File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed
DataCommander.Providers/Query
DataCommander.Providers.SqlServer2005 Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ string IObjectName.QuotedName
45
45
sb . Append ( QuoteIdentifier ( this . schemaName ) ) ;
46
46
sb . Append ( '.' ) ;
47
47
}
48
- else if ( this . sqlObject . ParentAlias != null )
49
- {
50
- sb . Append ( this . sqlObject . ParentAlias ) ;
51
- sb . Append ( '.' ) ;
52
- }
48
+ // else if (this.sqlObject.ParentAlias != null)
49
+ // {
50
+ // sb.Append(this.sqlObject.ParentAlias);
51
+ // sb.Append('.');
52
+ // }
53
53
54
54
sb . Append ( QuoteIdentifier ( this . objectName ) ) ;
55
55
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ namespace DataCommander.Providers.SqlServer2005
5
5
using System . Data ;
6
6
using System . Data . Common ;
7
7
using System . Data . SqlClient ;
8
- using System . Diagnostics ;
9
8
using System . IO ;
10
9
using System . Linq ;
11
10
using System . Text ;
12
- using System . Windows . Forms ;
13
11
using System . Xml ;
14
12
using DataCommander . Foundation ;
15
13
using DataCommander . Foundation . Configuration ;
@@ -674,7 +672,7 @@ where o.type in('P','X')
674
672
if ( fieldCount == 1 )
675
673
{
676
674
schemaName = null ;
677
- objectName = dataReader . GetString ( 0 ) ;
675
+ objectName = dataReader [ 0 ] . ToString ( ) ;
678
676
}
679
677
else
680
678
{
Original file line number Diff line number Diff line change @@ -2576,10 +2576,8 @@ private void ShowTimer(int scale)
2576
2576
if ( rowCount > 0 )
2577
2577
{
2578
2578
double seconds = ( double ) ticks / Stopwatch . Frequency ;
2579
- double speedD = rowCount / seconds ;
2580
- int speedInt = ( int ) speedD ;
2581
2579
2582
- text += " (" + speedInt + " rows/sec)" ;
2580
+ text += " (" + Math . Round ( rowCount / seconds , 0 ) + " rows/sec)" ;
2583
2581
}
2584
2582
2585
2583
sbPanelRows . Text = text ;
You can’t perform that action at this time.
0 commit comments