File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
hibernate-core/src/main/java/org/hibernate/dialect Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ protected String columnType(int sqlTypeCode) {
582582 /**
583583 * Does this dialect strip trailing spaces from values stored
584584 * in columns of type {@code char(n)}?
585- * MySQL is the main offender here.
585+ * MySQL and Sybase are the main offenders here.
586586 */
587587 public boolean stripsTrailingSpacesFromChar () {
588588 return false ;
Original file line number Diff line number Diff line change @@ -257,6 +257,11 @@ public NationalizationSupport getNationalizationSupport() {
257257 return driverKind == SybaseDriverKind .JTDS ? NationalizationSupport .IMPLICIT : super .getNationalizationSupport ();
258258 }
259259
260+ @ Override
261+ public boolean stripsTrailingSpacesFromChar () {
262+ return true ;
263+ }
264+
260265 @ Override
261266 public void initializeFunctionRegistry (FunctionContributions functionContributions ) {
262267 super .initializeFunctionRegistry ( functionContributions );
You can’t perform that action at this time.
0 commit comments