EAssertionFailed in MemDS

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
malinsky
Posts: 32
Joined: Wed 20 Aug 2008 11:38

EAssertionFailed in MemDS

Post by malinsky » Wed 09 Sep 2009 10:29

Hi,

I have this query:
-------------
select c.xml_collection_id as id, c.name, s.name as sch_name,
(select value from [fn_listextendedproperty] ('MS_Description', 'SCHEMA', s.name,'XML SCHEMA COLLECTION', c.name, null, null)) as description,
(select xml_schema_namespace(s.name,c.name)) as xml_expr
from sys.xml_schema_collections c left join sys.schemas s on s.schema_id = c.schema_id
where (not (c.name = 'sys' and s.name = 'sys'))
-------------

When opening is raised exception class EAssertionFailed with message
'Unknown data type (..\UniDac\Source\MemDS.pas, line 683)'.

MemDS cannot decode/assign field "xml_expr" (select xml_schema_namespace(s.name,c.name))
because Field.DataType is 100. ADO decode this field as ftWideMemo.

Please, how fix this problem in MemDS.pas ?


My temporary quick fix:

---------------------------
class function TDataTypesMap.GetFieldType(DataType: Word): TFieldType;
begin
...
dtMemo:
Result := ftMemo;
100, //@PMal added
dtWideMemo:
Result := {$IFDEF VER10P}ftWideMemo;{$ELSE}ftMemo;{$ENDIF}
dtBlob:
Result := ftBlob;
...
---------------------------


Thank Pavel

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 11 Sep 2009 08:10

We will add support for SQL Server XML data type in one of the next UniDAC builds.

malinsky
Posts: 32
Joined: Wed 20 Aug 2008 11:38

Post by malinsky » Fri 11 Sep 2009 08:54

Thanks!

malinsky
Posts: 32
Joined: Wed 20 Aug 2008 11:38

Post by malinsky » Fri 16 Oct 2009 16:24

Hi,

is there already any support for XML fields from build 3.00.0.3 ?

Thanks, PMal

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 22 Oct 2009 08:55

We have not added this support yet. We are planning to add it into the next build.

malinsky
Posts: 32
Joined: Wed 20 Aug 2008 11:38

Post by malinsky » Sat 24 Oct 2009 08:06

OK :)

Post Reply