SELECT 'very loooooong literal' - result is truncated to 126 characters
Posted: 14.03.2016, 13:42
Hi.
Why result string is truncated?
How to solve my problem without changing query sql text?
db: Postgresql 9.3
Code: Select all
String literal = "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";
int literalLen = literal.Length(); // 130
ZQuery1->SQL->Text = "select '" + literal + "'";
ZQuery1->Active = true;
String string = ZQuery1->Fields->FieldByNumber(1)->AsString; // { u"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456" }
int strLen = string.Length(); // 126
int size = ZQuery1->Fields->FieldByNumber(1)->Size; // 126
ZQuery1->Active = false;
How to solve my problem without changing query sql text?
db: Postgresql 9.3