HIVE 2304 : for hive2

Fix for HivePreparedStatement for the hive2 driver.

Applied the same setObject() code that fixed  HIVE 2304 for hive1 driver.