mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-08 09:38:25 -05:00
Edit Data: Better errors for possible truncation (#514)
* Fix to make sql exceptions surface properly to user (with important notes!) * Adding support for detecting column size issues when updating a cell * Adding unit tests for the exception on read scenario
This commit is contained in:
committed by
Karl Burtram
parent
9499d73cec
commit
e9bc97e290
@@ -3651,6 +3651,11 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
return Keys.GetString(Keys.EditDataUnsupportedObjectType, typeName);
|
||||
}
|
||||
|
||||
public static string EditDataValueTooLarge(string value, string columnType)
|
||||
{
|
||||
return Keys.GetString(Keys.EditDataValueTooLarge, value, columnType);
|
||||
}
|
||||
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class Keys
|
||||
{
|
||||
@@ -3932,6 +3937,9 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string EditDataNullNotAllowed = "EditDataNullNotAllowed";
|
||||
|
||||
|
||||
public const string EditDataValueTooLarge = "EditDataValueTooLarge";
|
||||
|
||||
|
||||
public const string EE_BatchSqlMessageNoProcedureInfo = "EE_BatchSqlMessageNoProcedureInfo";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user