Skip to content
Snippets Groups Projects
Commit 7b1efac0 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: Fixed SQL errors.

parent a47a3aad
No related branches found
No related tags found
No related merge requests found
Pipeline #24623 canceled
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
package org.caosdb.server.query; package org.caosdb.server.query;
import static java.sql.Types.DOUBLE; import static java.sql.Types.DOUBLE;
import static java.sql.Types.INTEGER;
import static java.sql.Types.VARCHAR; import static java.sql.Types.VARCHAR;
import static org.caosdb.server.database.DatabaseUtils.bytes2UTF8; import static org.caosdb.server.database.DatabaseUtils.bytes2UTF8;
...@@ -280,6 +281,9 @@ public class POV implements EntityFilterInterface { ...@@ -280,6 +281,9 @@ public class POV implements EntityFilterInterface {
callPOV.setInt(7, vIntSubst); callPOV.setInt(7, vIntSubst);
callPOV.setDouble(8, this.vDouble); callPOV.setDouble(8, this.vDouble);
} }
} else {
callPOV.setNull(7, INTEGER);
callPOV.setNull(8, DOUBLE);
} }
if (this.unit != null) { if (this.unit != null) {
final long unitSig = this.unit.getSignature(); final long unitSig = this.unit.getSignature();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment