diff options
Diffstat (limited to 'src/cli/runtime/ThreadLocalData.cs')
| -rw-r--r-- | src/cli/runtime/ThreadLocalData.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cli/runtime/ThreadLocalData.cs b/src/cli/runtime/ThreadLocalData.cs index bb3f8896..3b57c632 100644 --- a/src/cli/runtime/ThreadLocalData.cs +++ b/src/cli/runtime/ThreadLocalData.cs @@ -23,6 +23,14 @@ public Object[] mvArray = new Object[MULTIPLE_VALUES_LIMIT]; internal HybridDictionary dynamicBindings = new HybridDictionary(); +internal Transaction transaction;
+
+public Transaction getTransaction() {
+ if(transaction == null)
+ throw new Exception("No active transaction");
+ return transaction;
+} + public ThreadLocalData(HybridDictionary dynamicBindings) { this.mvCount = 0; |
