UniDAC with Firebird Unicode Memo Fields

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rhettp
Posts: 25
Joined: Tue 15 Aug 2006 01:25

UniDAC with Firebird Unicode Memo Fields

Post by rhettp » Fri 24 Dec 2010 19:29

Hi,

1 last issue to deal with in my UniDAC testing.

With IBDAC, I'm posting a Unicode Memo field and making sure to set

EnableIntegers := True;

Before I did this, I had problems. Now with UniDAC - it appears to be the same problem, but there isn't an EnableIntegers options that I can find.

I would think that this would be an option:

UniConnection1.SpecificOptions.Values['EnableIntegers'] := 'True';

But this doesn't work. Any ideas on how to get this posting properly with UniDAC?

I'm using this method in both IBDAC and UniDAC to push the data into the field (Where MemoTemp is my parameter for the memo data):

qLOOKUP2Tier.ParamByName('MEMOTEMP').DataType := ftWideMemo;
qLOOKUP2Tier.ParamByName('MEMOTEMP').AsWideString := mNotes2Tier.Lines.Text;

Thanks,

Rhett

rhettp
Posts: 25
Joined: Tue 15 Aug 2006 01:25

Post by rhettp » Fri 24 Dec 2010 20:09

My apologies - I meant to post EnableMemos instead of EnableIntegers.

- Rhett

AndreyZ

Post by AndreyZ » Mon 27 Dec 2010 15:08

Hello,

Thank you for the information. We have fixed this problem. This fix will be included in the next UniDAC build. As a workaround you can use the following code:

Code: Select all

qForUpdates.ParamByName('MEMOTEMP').DataType := ftMemo;
qForUpdates.ParamByName('MEMOTEMP').AsAnsiString := UTF8Encode(mNotes.Lines.Text);

Post Reply