mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-06-21 07:35:09 -04:00
edit/createRow Default Values (#266)
Returns strings for the default value of a column when a new row is created. The values that could come back: * `null` when there isn't a default for the column * a string when there is a default for the column * a placeholder (currently <TBD>) when the column cannot be updated * Renaming EditTableMetadata to reflect its SMO source * Implementation of returning default values * Unit test for default values * Reworking column defaults using default constraints * Adding unit test for new sql script unwrapper * Disabling flaky test * Fixing oddities in tests, removing personal tests * Fixing broken unit test
This commit is contained in:
@@ -501,6 +501,14 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
}
|
||||
}
|
||||
|
||||
public static string EditDataComputedColumnPlaceholder
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.EditDataComputedColumnPlaceholder);
|
||||
}
|
||||
}
|
||||
|
||||
public static string EditDataInitializeInProgress
|
||||
{
|
||||
get
|
||||
@@ -1054,6 +1062,9 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string EditDataCommitInProgress = "EditDataCommitInProgress";
|
||||
|
||||
|
||||
public const string EditDataComputedColumnPlaceholder = "EditDataComputedColumnPlaceholder";
|
||||
|
||||
|
||||
public const string EditDataInitializeInProgress = "EditDataInitializeInProgress";
|
||||
|
||||
|
||||
|
||||
@@ -423,6 +423,10 @@
|
||||
<value>A commit task is in progress. Please wait for completion.</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="EditDataComputedColumnPlaceholder" xml:space="preserve">
|
||||
<value><TBD></value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="EditDataInitializeInProgress" xml:space="preserve">
|
||||
<value>Another edit data initialize is in progress for this owner URI. Please wait for completion.</value>
|
||||
<comment></comment>
|
||||
|
||||
@@ -200,6 +200,8 @@ EditDataScriptFilePathNull = An output filename must be provided
|
||||
|
||||
EditDataCommitInProgress = A commit task is in progress. Please wait for completion.
|
||||
|
||||
EditDataComputedColumnPlaceholder = <TBD>
|
||||
|
||||
EditDataInitializeInProgress = Another edit data initialize is in progress for this owner URI. Please wait for completion.
|
||||
|
||||
############################################################################
|
||||
|
||||
@@ -531,9 +531,9 @@
|
||||
<target state="new">Decimal column is missing numeric precision or numeric scale</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="QueryServiceResultSetAddNoRows">
|
||||
<source>Cannot add row to result buffer, data reader does not contain rows</source>
|
||||
<target state="new">Cannot add row to result buffer, data reader does not contain rows</target>
|
||||
<trans-unit id="EditDataComputedColumnPlaceholder">
|
||||
<source><TBD></source>
|
||||
<target state="new"><TBD></target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="EditDataInitializeInProgress">
|
||||
@@ -541,6 +541,11 @@
|
||||
<target state="new">Another edit data initialize is in progress for this owner URI. Please wait for completion.</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="QueryServiceResultSetAddNoRows">
|
||||
<source>Cannot add row to result buffer, data reader does not contain rows</source>
|
||||
<target state="new">Cannot add row to result buffer, data reader does not contain rows</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
Reference in New Issue
Block a user