Skip to content
Browse files

Oracle custom Persist Commit statment returns the Checkpoint number

  • Loading branch information...
1 parent e111a47 commit 714ffa324f5959f6d6e3d6779e42722ec054f076 @damianh damianh committed Sep 4, 2013
View
44 src/NEventStore/Persistence/SqlPersistence/SqlDialects/OracleNativeStatements.Designer.cs
@@ -274,28 +274,34 @@ internal class OracleNativeStatements {
/// <summary>
/// Looks up a localized string similar to /*PersistCommit*/
+ ///DECLARE
+ /// checkPointNumber NUMBER;
+ ///BEGIN
///INSERT INTO Commits (
- /// BucketId, StreamId,
- /// StreamIdOriginal,
- /// CommitId,
- /// CommitSequence,
- /// StreamRevision,
- /// Items,
- /// CommitStamp,
- /// Headers,
- /// Payload
+ /// BucketId,
+ /// StreamId,
+ /// StreamIdOriginal,
+ /// CommitId,
+ /// CommitSequence,
+ /// StreamRevision,
+ /// Items,
+ /// CommitStamp,
+ /// Headers,
+ /// Payload
///)
///VALUES (
- /// :BucketId, :StreamId,
- /// :StreamIdOriginal,
- /// :CommitId,
- /// :CommitSequence,
- /// :StreamRevision,
- /// :Items,
- /// :CommitStamp,
- /// :Headers,
- /// :Payload
- ///).
+ /// :BucketId,
+ /// :StreamId,
+ /// :StreamIdOriginal,
+ /// :CommitId,
+ /// :CommitSequence,
+ /// :StreamRevision,
+ /// :Items,
+ /// :CommitStamp,
+ /// :Headers,
+ /// :Payload
+ ///)
+ ///RETURNING CheckpointNumber INTO checkPointNum [rest of string was truncated]&quot;;.
/// </summary>
internal static string PersistCommit {
get {
View
45 src/NEventStore/Persistence/SqlPersistence/SqlDialects/OracleNativeStatements.resx
@@ -292,28 +292,35 @@ WHERE ROW_NUMBER_VAL &gt; :Skip AND ROW_NUMBER_VAL &lt;= (:Limit + :Skip)</value
</data>
<data name="PersistCommit" xml:space="preserve">
<value>/*PersistCommit*/
+DECLARE
+ checkPointNumber NUMBER;
+BEGIN
INSERT INTO Commits (
- BucketId, StreamId,
- StreamIdOriginal,
- CommitId,
- CommitSequence,
- StreamRevision,
- Items,
- CommitStamp,
- Headers,
- Payload
+ BucketId,
+ StreamId,
+ StreamIdOriginal,
+ CommitId,
+ CommitSequence,
+ StreamRevision,
+ Items,
+ CommitStamp,
+ Headers,
+ Payload
)
VALUES (
- :BucketId, :StreamId,
- :StreamIdOriginal,
- :CommitId,
- :CommitSequence,
- :StreamRevision,
- :Items,
- :CommitStamp,
- :Headers,
- :Payload
-)</value>
+ :BucketId,
+ :StreamId,
+ :StreamIdOriginal,
+ :CommitId,
+ :CommitSequence,
+ :StreamRevision,
+ :Items,
+ :CommitStamp,
+ :Headers,
+ :Payload
+)
+RETURNING CheckpointNumber INTO checkPointNumber;
+END;</value>
</data>
<data name="PurgeBucket" xml:space="preserve">
<value>/*PurgeStorage*/

0 comments on commit 714ffa3

Please sign in to comment.
Something went wrong with that request. Please try again.