Select a fixed string, is adding whitespace
Posted: Thu 24 Jul 2014 17:38
I'm using driver version 4.8 dbexpoda40 until recently. Just decided to renew the license and update to version 6.4.7 (latest available).
However, with this update, which began to occur in selects fixed string, is returning a space at the end. Here's an example:
ClientDataSetAuxiliar.Close;
ClientDataSetAuxiliar.CommadText: = 'select ''A'' field1 from dual';
ClientDataSetAuxiliar.Open;
if ClientDataSetAuxiliar.FieldByName ('field1'). AsString = 'A' then
ShowMessage('There goes here');
if ClientDataSetAuxiliar.FieldByName ('field1'). AsString = 'A ' then
ShowMessage('Come here');
Does anyone know why this is happening?
The parameter SQLConnection "TrimFixedChar = True" to solve this problem, but it can bring other problems.
Grateful for the assistance.
Edson Luis Pletsch
However, with this update, which began to occur in selects fixed string, is returning a space at the end. Here's an example:
ClientDataSetAuxiliar.Close;
ClientDataSetAuxiliar.CommadText: = 'select ''A'' field1 from dual';
ClientDataSetAuxiliar.Open;
if ClientDataSetAuxiliar.FieldByName ('field1'). AsString = 'A' then
ShowMessage('There goes here');
if ClientDataSetAuxiliar.FieldByName ('field1'). AsString = 'A ' then
ShowMessage('Come here');
Does anyone know why this is happening?
The parameter SQLConnection "TrimFixedChar = True" to solve this problem, but it can bring other problems.
Grateful for the assistance.
Edson Luis Pletsch