LoginSignup
0
0

More than 5 years have passed since last update.

DBD::DB2でVARGRAPHICがtruncateされた場合の一時対処

Last updated at Posted at 2015-02-25

説明

DB2のデータ型VARGRAPHICで文字列長が設定値を下回っていても切り捨てが発生。

対処

DBD::DB2モジュールを編集してバッファを4倍?確保

手順


cpanm --look DBD::DB2
# dbdimp.c編集
vi dbdimp.c
perl Makefile.PL
make
make install
exit

編集箇所 dbdimp.c: 1321行目


 + fbh->rlen = bufferSizeRequired = (4*fbh->dsize)+1;/* +1: STRING null terminator */
 - fbh->rlen = bufferSizeRequired = fbh->dsize+1;/* +1: STRING null terminator */
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0