DB2 code

I removed the two references to printStackTrace - hopefully this is the 
only remaining place in my code.

I also added logic to throw an exception of BLOB is returned for a 
geometry value.

On 11/24/2014 3:31 PM, Karel Maesen wrote:
>
> In 
> hibernate-spatial/src/main/java/org/hibernate/spatial/dialect/db2/DB2GeometryValueExtractor.java:
>
> > +				if (read > 0) {
> > +					out.append(buffer, 0, read);
> > +				}
> > +			} while (read >= 0);
> > +
> > +		} catch (Exception e) {
> > +			getLogger().error("Could not convert database CLOB object to String.");
> > +			e.printStackTrace();
> > +		} finally {
> > +			try {
> > +				if (in != null) {
> > +					in.close();
> > +				}
> > +			} catch (IOException e) {
> > +				getLogger().error("Could not close input stream.");
> > +				e.printStackTrace();
>
> printStacktrace statements should be removed everywhere in the code.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/maesenka/hibernate-core/pull/6/files#r20819690>.
>



---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com