fix for named parameter in update query.

There was a wrong behavior with the named parameters in the sql update, fixed with the relative test