/**
  * Returns the parameter scale. The value 0 is returned if the scale is not known.
  *
  * @param param the column index (1,2,...)
  * @return the scale
  */
 public int getScale(int param) throws SQLException {
   try {
     debugCodeCall("getScale", param);
     ParameterInterface p = getParameter(param);
     return p.getScale();
   } catch (Exception e) {
     throw logAndConvert(e);
   }
 }