Repository navigation
fix(ios): keep plugin enum labels and always identities, and name an identity in a defaults row - #4494
Merged
datlechin merged 3 commits intoNov 25, 2026
Conversation
…on iOS The mapping now copies plugin.allowedValues for query completion and sets rejectsWrittenValues only when identityKind is .always. This lets the forms treat always-identity columns as server-owned while keeping by-default identities writable. The mapping test covers enum labels, both identity modes, and virtual columns, and the Oracle driver test now checks which columns are server-owned. Fixes TableProApp#4422
…, read PostgreSQL always identity
datlechin
enabled auto-merge (squash)
November 25, 2026 13:44
Contributor
Author
|
@datlechin appreciate you merging this. Enum labels from plugins stay intact on iOS now, and a GENERATED ALWAYS identity column is treated as server-owned in Insert Row and the row editor. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ColumnInfo(from:)) keep the plugin's enum labels and mark a GENERATED ALWAYS identity as refusing written values.identity_generation, so a GENERATED ALWAYS AS IDENTITY column is server-owned in Insert Row and the row editor.[ColumnInfo].defaultsRowColumn,SQLRowToStatementConverter.identityColumns).TableProDuckDBCore(DuckDBEnumLabels): backslashes and blanks kept, list and array types give element labels. The DuckDB plugin uses it, and the iOS completion catalog's copy is gone.SQLCompletionValueLabels), since they are its elements' (PostgreSQLENUM[], DuckDBENUM(...)[]).Test plan
QueryCompletionCatalogTests/clickHouseLabelsThroughThePluginDriver,PluginBackedDriverTests/columnsKeepLabelsAndIdentityKind,PostgreSQLCatalogQueryTests/identityGeneration,SQLSchemaProviderTests/listColumnOffersNoValues,SQLRowToStatementConverterTests/oracleRowOfOnlyDefaultsNamesTheIdentity.RowInsertPlannerTests/allDefaultsOnOracleIdentityOnly,ClipboardExporterFidelityTests/oracleRowOfOnlyDefaults,MobileImportDataSinkTests/defaultsRowNamesTheIdentity,QueryCompletionCatalogTests/duckDBLabelsComeFromTheDriver.DuckDBEnumLabelsTests,SQLCompletionValueLabelsTests, splitQueryResultMappingTests.PostgreSQLCatalogQueryTests/armsAgreenow expectsidentity_generationin the column read.Fixes #4422