[Dive4elements-commits] [PATCH] Use correct data type for user role in sql statement

Wald Commits scm-commit at wald.intevation.org
Mon May 6 16:36:51 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1367850967 -7200
# Node ID 6f6a5b229a7aa8097235b054247166a367c3adb6
# Parent  4741da05c0d9091ea5096e800fbf34286e0b2bad
Use correct data type for user role in sql statement.

diff -r 4741da05c0d9 -r 6f6a5b229a7a artifact-database/src/main/java/org/dive4elements/artifactdatabase/Backend.java
--- a/artifact-database/src/main/java/org/dive4elements/artifactdatabase/Backend.java	Fri May 03 16:19:40 2013 +0200
+++ b/artifact-database/src/main/java/org/dive4elements/artifactdatabase/Backend.java	Mon May 06 16:36:07 2013 +0200
@@ -844,7 +844,7 @@
                 stmnt.setString(4, account);
 
                 if (roleData == null) {
-                    stmnt.setNull(5, Types.BIGINT);
+                    stmnt.setNull(5, Types.BINARY);
                 }
                 else {
                     stmnt.setBytes(5, roleData);


More information about the Dive4elements-commits mailing list