Merge branch 'geofence-api' into 'corrective-policy'

Fix issue in geofence creation

See merge request entgra/carbon-device-mgt!650
corrective-policy
Inosh Perara 4 years ago
commit f9b25b95a2

@ -53,7 +53,7 @@ public class GeofenceDAOImpl implements GeofenceDAO {
"CREATED_TIMESTAMP, " + "CREATED_TIMESTAMP, " +
"OWNER, " + "OWNER, " +
"TENANT_ID) " + "TENANT_ID) " +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?)"; "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
try (PreparedStatement stmt = conn.prepareStatement(sql)) { try (PreparedStatement stmt = conn.prepareStatement(sql)) {
stmt.setString(1, geofenceData.getFenceName()); stmt.setString(1, geofenceData.getFenceName());
stmt.setString(2, geofenceData.getDescription()); stmt.setString(2, geofenceData.getDescription());

Loading…
Cancel
Save