Skip to content

Fix: SQLite compound primary keys#86

Merged
JaBistDuNarrisch merged 4 commits intomasterfrom
postgre-test-reactivation
Aug 5, 2025
Merged

Fix: SQLite compound primary keys#86
JaBistDuNarrisch merged 4 commits intomasterfrom
postgre-test-reactivation

Conversation

@JaBistDuNarrisch
Copy link
Copy Markdown

No description provided.

@JaBistDuNarrisch JaBistDuNarrisch merged commit 59b93e1 into master Aug 5, 2025
2 checks passed
@JaBistDuNarrisch JaBistDuNarrisch deleted the postgre-test-reactivation branch August 5, 2025 19:50
@JaBistDuNarrisch JaBistDuNarrisch self-assigned this Aug 7, 2025

[TestFixture]
[Category("SQLite")]
public class SQLiteTransformationProvider_RecreateTableTests : SQLiteTransformationProviderTestBase
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name und Datei nicht gleich.

Assert.That(sql, Is.EqualTo("CREATE TABLE Common_Availability_EvRef (EventId INTEGER NOT NULL, AvailabilityGroupId UNIQUEIDENTIFIER NOT NULL, PRIMARY KEY (EventId, AvailabilityGroupId))"));

// The quotes around the table name are added by SQLite on ALTER TABLE in RecreateTable
Assert.That(sql2, Is.EqualTo("CREATE TABLE \"Common_Availability_EvRef\" (EventId INTEGER NOT NULL, AvailabilityGroupId UNIQUEIDENTIFIER NOT NULL, PRIMARY KEY (EventId, AvailabilityGroupId))"));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gibt es einen Grund warum das einmal mit und einmal ohne die Anführungszeichen ist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants