{
if (!UpdatePattern.matcher(query).matches())
throw new SQLException("Not an update statement.");
try
{
CqlResult rSet = connection.execute(query);
assert rSet.getType().equals(CqlResultType.VOID);
// if only we knew how many rows were updated.
return 0;
}
catch (InvalidRequestException e)
{