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:
Alex Ma
2020-08-06 13:18:24 -07:00
committed by Karl Burtram
parent 839acf67cd
commit 81b4bb7753
4 changed files with 144 additions and 6 deletions

View File

@@ -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)