Skip to content

Differences from ACE

LibRed aims to behave as ACE does, and is tested against ACE to check it. The differences below are deliberate: either ACE’s behaviour is a defect, or it doesn’t fit how .NET reads the results.

Area ACE LibRed
TOP n Also returns every further row whose ORDER BY keys equal the last one’s. Returns exactly n rows. TOP n WITH TIES gives ACE’s rows.
NOT (x < ALL (…)) and other negated ANY/ALL comparisons Rewritten to x >= ALL (…), which isn’t the negation, for any comparison except =. Negates the result.
Nested joins Refuses an inner join on an outer join’s optional side, or nested as an outer join’s operand (“JOIN expression not supported”). Also refuses an ON that doesn’t reference both sides. Evaluates them as the parentheses nest them, returning the rows the SQL standard defines. Takes any condition in an ON.
Type of a comparison or other Boolean expression Int16 -1/0 Boolean True/False. The values agree.
SUM, MIN, MAX over a Yes/No column, SUM over an Int32 Widened to Double, or Int16 The types LINQ’s Sum overloads give, which is what EF Core reads.
A Currency column defaulting to 0 Reads as 0.0000 Reads as 0. The values are equal.
A DateTime parameter, under the OLE DB client’s default binding Arrives as text, so comparing it with a number is a type mismatch Is the date itself, as ACE sees it when bound as OleDbType.Date.
A new column whose name collates equal to an existing one (pre and preț) Accepted, after which every reference reaches only the first column Refused, along with any reference that matches two columns of a table ACE made.
WITH OWNERACCESS OPTION Runs with the owner’s permissions Accepted wherever ACE accepts it and kept on a stored query, but changes nothing, because LibRed has no users.

LibRed also accepts SQL that ACE has no syntax for. Every page of the SQL reference marks what is a LibRed extension.