SQLite Concat returns Memo

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Andidreas
Posts: 16
Joined: Mon 20 Jan 2014 14:43

SQLite Concat returns Memo

Post by Andidreas » Fri 28 Feb 2014 12:13

Hi,

since I've updated my UniDac Version to 5.2.7 I have the Problem that Fields which i concatenate in the SQL Statement would be shown as Memo...

Pls check! I don't understand why!

I use for example the following SQL Statment:

Code: Select all

Select Field1 || Field2 || Field3 From TestTable
Result in the DBGrid is --> (Memo)

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: SQLite Concat returns Memo

Post by AlexP » Fri 28 Feb 2014 13:55

Hello,

When using concatenation, SQLite returns the Unknown data type, therefore we map fields of this type to ftMemo. You can use the DataTypeMappingtechnology to map the field type to a required type.

Andidreas
Posts: 16
Joined: Mon 20 Jan 2014 14:43

Re: SQLite Concat returns Memo

Post by Andidreas » Wed 05 Mar 2014 12:32

your new version of the unidac component is quite a joke!!! :x
and therfore we have to pay???

why, please explain why return your component a ftMemo Data Type when i say in my sql statement
select field1, "0" as TestColumn from testtable

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: SQLite Concat returns Memo

Post by AlexP » Wed 05 Mar 2014 12:55

As I wrote you earlier, SQLite returns Unknown type for the TestColumn field, and since we don't know the type of the data stored in this column, we map it as ftMemo

Andidreas
Posts: 16
Joined: Mon 20 Jan 2014 14:43

Re: SQLite Concat returns Memo

Post by Andidreas » Wed 05 Mar 2014 16:17

Yepp, you wrote that.
But this was your answer for my problem with the concatenate of Fields in a SQLite SQL Statement.

What i know did was that I create a Column with Blanks as Field Content, and in this case i also get the ftMemo Datatype which is quite not logical for me!

Code: Select all

Select Field1, Field2, "" as EmptyColumn From Test_Table
And why does this work w/o any issues in the previous versions?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: SQLite Concat returns Memo

Post by AlexP » Thu 06 Mar 2014 10:36

For such cases, we have implemented the DataTypeMapping technology, that allows to specify the Delphi type for such fields in a query: http://www.devart.com/litedac/docs/data ... apping.htm

Post Reply