--- a/src/ptclib/podbc.cxx +++ a/src/ptclib/podbc.cxx @@ -1217,7 +1217,7 @@ PString PODBCRecord::GetLongData(PINDEX Column) while (InternalGetData((USHORT)Column,sbin.GetPointer(len + 1),len,&cb)) { - if (sbin.Right(1) == '\0') // Remove Null Char + if (sbin.Right(1).IsEmpty()) // Remove Null Char Data = Data + sbin.Left(sbin.GetLength()-1); else Data = Data + sbin;