Given a typical Invoice/InvoiceLine entity model and the following ESQL query
Code: Select all
SELECT VALUE COUNT (
SELECT VALUE 0 FROM invoice.Lines
) AS Lines
FROM InvoiceData.Invoices AS invoice
The issue is not observed with both SQL Server and SQL CE data providers.
Please confirm that it is a bug in dotConnect for Oracle and provide some estimation if it can (and is going to be) fixed in the coming releases. Your answer will help us making a decision about adopting your provider for our product.
ADDENDUM: we just have spotted another case with a similar issue being involved. The following ESQL query selects two columns of type EntityKey, that are semantically equivalent (reference of Invoice type). However, the member value of the first key (Invoice.Id) is Int32 (which is correct) while the member of the second key is Decimal (should be Int32 too):
Code: Select all
SELECT REF(invoice)
, REF(ANYELEMENT(
select value top(1) tmp from ( -- ***
(SELECT VALUE line.Invoice FROM invoice.Lines AS line)
) as tmp -- ***
))
FROM InvoiceData.Invoices AS invoice"