Quantcast
Channel: SCN : Popular Discussions - SAP MaxDB
Viewing all articles
Browse latest Browse all 1545

MaxDB is trimming the trailing spaces

$
0
0

MaxDB is trimming the trailing spaces

 

While inserting on (VAR)CHAR columns.

 

See the following experiment:

 

create table test (x varchar(20));

 

insert into test values ('  kkq    ');

 

select length(x) from test;

 

 

 

This will show a length of 5.

 

 

 

This occurs when connecting with odbc as well as jdbc.

 

 

 

We are having porting problems because Oracle and DB2 for example

do not trim trailing spaces.

 

Are there any parameters (server or driver) to alter this behavior

to preserving the trailing spaces?


Viewing all articles
Browse latest Browse all 1545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>