Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Attempt to get SqlCE acceptance tests passing. SqlCE doesn't support …

…batched queries, so can't select @@IDENTITY when persisting a commit. So, for now, is broken.
  • Loading branch information...
commit 6b2aa1082251f94ede19a0b9159e0b017428ec8f 1 parent e6bb87e
@damianh damianh authored
View
2  src/NEventStore/Persistence/SqlPersistence/SqlDialects/SqlCeDialect.cs
@@ -34,7 +34,7 @@ public override string GetCommitsFromToInstant
public override string PersistCommit
{
- get { throw new NotImplementedException(); }
+ get { return SqlCeStatements.PersistCommit; }
}
public override string GetCommitsFromCheckpoint
View
12 src/NEventStore/Persistence/SqlPersistence/SqlDialects/SqlCeStatements.Designer.cs
@@ -82,5 +82,17 @@ internal class SqlCeStatements {
return ResourceManager.GetString("InitializeStorage", resourceCulture);
}
}
+
+ /// <summary>
+ /// Looks up a localized string similar to INSERT
+ /// INTO Commits
+ /// ( BucketId, StreamId, StreamIdOriginal, CommitId, CommitSequence, StreamRevision, Items, CommitStamp, Headers, Payload )
+ ///VALUES (@BucketId, @StreamId, @StreamIdOriginal, @CommitId, @CommitSequence, @StreamRevision, @Items, @CommitStamp, @Headers, @Payload);.
+ /// </summary>
+ internal static string PersistCommit {
+ get {
+ return ResourceManager.GetString("PersistCommit", resourceCulture);
+ }
+ }
}
}
View
6 src/NEventStore/Persistence/SqlPersistence/SqlDialects/SqlCeStatements.resx
@@ -148,4 +148,10 @@ CREATE TABLE Snapshots
CONSTRAINT PK_Snapshots PRIMARY KEY (BucketId, StreamId, StreamRevision)
);</value>
</data>
+ <data name="PersistCommit" xml:space="preserve">
+ <value>INSERT
+ INTO Commits
+ ( BucketId, StreamId, StreamIdOriginal, CommitId, CommitSequence, StreamRevision, Items, CommitStamp, Headers, Payload )
+VALUES (@BucketId, @StreamId, @StreamIdOriginal, @CommitId, @CommitSequence, @StreamRevision, @Items, @CommitStamp, @Headers, @Payload);</value>
+ </data>
</root>
Please sign in to comment.
Something went wrong with that request. Please try again.