mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Warning for multiple delete (#931)
* Fix for multiple delete bug * minor space removal * removed catch error in RowDelete * small optimizations * space adding * WIP on creating test * Some cleanup * removed spaces * Fix for verifytext * Added check for command format correctness. * tidying up * added working test for command exception * simplification of TestDbDataReader getint * Corrections made * spacing and naming issues * minor space * one more space issue
This commit is contained in:
@@ -219,7 +219,13 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.Utility
|
||||
|
||||
public override int GetInt32(int ordinal)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
string allChars = ((string) RowEnumerator.Current[ordinal]);
|
||||
int x = 0;
|
||||
if(allChars.Length != 1 || !Int32.TryParse(allChars.ToString(), out x) )
|
||||
{
|
||||
throw new InvalidCastException();
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
public override short GetInt16(int ordinal)
|
||||
|
||||
Reference in New Issue
Block a user