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) {
582
582
/**
583
583
* Does this dialect strip trailing spaces from values stored
584
584
* in columns of type {@code char(n)}?
585
- * MySQL is the main offender here.
585
+ * MySQL and Sybase are the main offenders here.
586
586
*/
587
587
public boolean stripsTrailingSpacesFromChar () {
588
588
return false ;
Original file line number Diff line number Diff line change @@ -257,6 +257,11 @@ public NationalizationSupport getNationalizationSupport() {
257
257
return driverKind == SybaseDriverKind .JTDS ? NationalizationSupport .IMPLICIT : super .getNationalizationSupport ();
258
258
}
259
259
260
+ @ Override
261
+ public boolean stripsTrailingSpacesFromChar () {
262
+ return true ;
263
+ }
264
+
260
265
@ Override
261
266
public void initializeFunctionRegistry (FunctionContributions functionContributions ) {
262
267
super .initializeFunctionRegistry ( functionContributions );
You can’t perform that action at this time.
0 commit comments