Using SmartGWTPro 4.0:
I'm developing a server-side standalone app to accompany our webapp. My standalone datasources have been fine up until today when this code:
	would produce this SQL query:
=== 2013-11-07 23:01:40,959 [er-1] INFO SQLDriver - [builtinApplication.null] Executing SQL update on 'Mysql': UPDATE drivesafe3 SET DS3IP='173.135.113.153:8080' WHERE (drivesafe3.DriveSafe3ID=23)
whereas this code:
	produces this SQL query:
=== 2013-11-07 23:00:40,748 [er-2] INFO SQLDriver - [builtinApplication.null] Executing SQL update on 'Mysql': UPDATE data_record SET LastKnownDate='11_08_2013', LastKnownEventID=0, LastKnownHour='03', LastKnownTelemetryID=1 WHERE ('1'='1')
Notice the criteria successfully appears as part of the generated SQL script with the first example, but not with the second.
I have tried several methods of setting the criteria (setCriteria() with a map and with a key/value pair, addToCriteria()), and it never seems to "stick". Elsewhere in the code, I'm able to successfully fetch from this datasource using criteria, but I can't seem to update.
What am I missing here???
					I'm developing a server-side standalone app to accompany our webapp. My standalone datasources have been fine up until today when this code:
Code:
	
	DSRequest dsReq = new DSRequest("drivesafe3", "update");
			Map criteria = new HashMap();
			criteria.put("DriveSafe3ID", unitID);
			Map values = new HashMap();
			values.put("DS3IP", unitIP);
			dsReq.setCriteria(criteria);
			dsReq.setValues(values);
			dsReq.execute();
=== 2013-11-07 23:01:40,959 [er-1] INFO SQLDriver - [builtinApplication.null] Executing SQL update on 'Mysql': UPDATE drivesafe3 SET DS3IP='173.135.113.153:8080' WHERE (drivesafe3.DriveSafe3ID=23)
whereas this code:
Code:
	
	DSRequest request = new DSRequest("data_record", "update");
			Map dataRecord = new HashMap();
			dataRecord.put("LastKnownDate", lastDate);
			dataRecord.put("LastKnownHour", lastHour);
			dataRecord.put("LastKnownEventID", lastEventID);
			dataRecord.put("LastKnownTelemetryID", lastTelID);
			request.setCriteria("DeviceID", unitID);
			request.setValues(dataRecord);
			request.execute();
=== 2013-11-07 23:00:40,748 [er-2] INFO SQLDriver - [builtinApplication.null] Executing SQL update on 'Mysql': UPDATE data_record SET LastKnownDate='11_08_2013', LastKnownEventID=0, LastKnownHour='03', LastKnownTelemetryID=1 WHERE ('1'='1')
Notice the criteria successfully appears as part of the generated SQL script with the first example, but not with the second.
I have tried several methods of setting the criteria (setCriteria() with a map and with a key/value pair, addToCriteria()), and it never seems to "stick". Elsewhere in the code, I'm able to successfully fetch from this datasource using criteria, but I can't seem to update.
What am I missing here???

Comment