|
Brett Meyer This would be the logging from org.hibernate.type.descriptor.sql.BasicBinder . This uses org.hibernate.type.descriptor.java.JavaTypeDescriptor#extractLoggableRepresentation.
That being said, I am not sure that this is the best idea. Having #extractLoggableRepresentation wrap the value in quotes potentially messes up logging in other areas. And having BasicBinder wrap the #extractLoggableRepresentation result in quotes is just ugly for non-character types.
For consistency it is probably best to wrap these in brackets, which is what we do in many other areas. I.E., the logging format (from BasicBinder) would change from:
private static final String BIND_MSG_TEMPLATE = "binding parameter [%s] as [%s] - %s";
private static final String BIND_MSG_TEMPLATE = "binding parameter [%s] as [%s] - [%s]";
|