From 62b4a046bcace4b7a444005e4ae45c27525ee732 Mon Sep 17 00:00:00 2001
From: Philipp
Date: Wed, 31 Oct 2018 22:13:27 +0100
Subject: [PATCH] VAL asignment for waveforms
---
devsupApp/src/devsup/db.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/devsupApp/src/devsup/db.py b/devsupApp/src/devsup/db.py
index 2197902..f36d2f6 100644
--- a/devsupApp/src/devsup/db.py
+++ b/devsupApp/src/devsup/db.py
@@ -277,7 +277,11 @@ class Record(_dbapi._Record):
except ValueError:
super(Record, self).__setattr__(name, val)
else:
- F.putval(val)
+ if len(F) > 1:
+ F.getarray().flat = val
+ F.putarraylen(len(val))
+ else:
+ F.putval(val)
def __repr__(self):