PostgreSQL - Type mismatch (Expecting: String actual: Memo)
Posted: Mon 09 May 2011 14:32
My situation (Unidac for Delphi7 Version 3.70.0.17):
ProviderName = PostgreSQL (version 8.4)
TUniquery component has only one field declared:
TestField - TStringField - Size = 4
UniQuery1.Close;
UniQuery1.SQL.Clear;
UniQuery1.SQL.Add('SELECT ''Yes'' AS TestField');
UniQuery1.Open;
When I run the query the following error occurs:
---------------------------
Project1
---------------------------
UniQuery1: Type mismatch for field 'TestField', expecting: String actual: Memo.
---------------------------
OK
---------------------------
How can I fix that problem ?
Thanks!
ProviderName = PostgreSQL (version 8.4)
TUniquery component has only one field declared:
TestField - TStringField - Size = 4
UniQuery1.Close;
UniQuery1.SQL.Clear;
UniQuery1.SQL.Add('SELECT ''Yes'' AS TestField');
UniQuery1.Open;
When I run the query the following error occurs:
---------------------------
Project1
---------------------------
UniQuery1: Type mismatch for field 'TestField', expecting: String actual: Memo.
---------------------------
OK
---------------------------
How can I fix that problem ?
Thanks!