Commit e74cafa1 authored by Volker Krause's avatar Volker Krause
Browse files

Deal with empty scalar sample data

We still need to insert that, so we have the sample id for non-scalar
data.
parent e73bca30
......@@ -151,6 +151,8 @@ class Sample
if (count($columns) > 0) {
$sql .= ' (' . implode(', ', $columns) . ') VALUES (';
$sql .= implode(', ', $binds) . ')';
} else {
$sql .= ' DEFAULT VALUES';
}
$stmt = $db->prepare($sql);
$db->execute($stmt, $values);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment