   --------------------------------
  | DES INSTALLATION (quick guide) |
   --------------------------------

================================================
Windows Binary Distribution with ACIDE GUI
================================================
- Double-click on des_acide.jar for starting the 
  ACIDE GUI. Requires Java JDK 1.8

================================================
Windows Binary Distribution
================================================
- Double-click on deswin.exe for starting the Windows
  application
- Execute des.exe for starting the console application

================================================
Linux/MacOSX Binary Distribution with ACIDE GUI
================================================
- Add execute permission to files des and des_start,
  typically with:
    chmod +x ./bin/des
    chmod +x ./bin/des_start
  or from the file explorer.
- Check unixodbc is installed
- Start ACIDE from a terminal with:
  java -jar des_acide.jar  
  Requires Java JDK 1.8

================================================
Linux/MacOSX Binary Distribution
================================================
- Add execute permission to files des and des_start,
  typically with:
    chmod +x ./bin/des
    chmod +x ./bin/des_start
  or from the file explorer.
- Check unixodbc is installed
- Start ./des in a terminal from its installation path

================================================
Windows Source Distributions
================================================
1. Create a shortcut in the desktop for running the Prolog 
   interpreter of your choice. 
2. Modify the start directory in the "Properties" dialog box 
   of the shortcut to the installation directory for DES. 
   This allows the system to consult the needed files at startup.
3. Append the following options to the Prolog executable complete 
   filename, depending on the Prolog interpreter you use:
   (a) SICStus Prolog: -l des.pl
   (b) SWI Prolog: -g "ensure_loaded(des)" (remove --win_app if present)
Another alternative is to write a batch file similar to the 
script file described just in the above section.
    
================================================
Linux/MacOSX Source Distributions
================================================
You can write a script for starting DES according to the 
selected Prolog interpreter, as follows:
(a) SICStus Prolog: 
    $SICSTUS -l des.pl 
    Provided that $SICSTUS is the variable which holds 
    the absolute filename of the SICStus Prolog executable.
(b) SWI Prolog: 
    $SWI -g "ensure_loaded(des)"
    Provided that $SWI is the variable which holds the 
    absolute filename of the SWI Prolog executable.

================================================
More Information: 
================================================

- See User Manual
  'Documentation' entry in 
  http://des.sourceforge.io/html/download.html
- http://des.sourceforge.io


Version 6.10 of DES (released on November, 11th, 2026)
 
* Enhancements:
  o SQL semantic checking of inconsistent and tautological conditions is extended to dependent views
  o Improved detection of semantic warnings for implied conditions (Error 8 [BG06])
  o Enhanced SQL semantic detection of unneeded DISTINCT modifier based on functional dependencies and distinguishing if duplicates are enabled or not
  o More SQL hints involving implied conditions
  o Foreign keys can omit the referenced column names, assuming the primary key columns of the referenced table to be the external key
  o Extended SQL CASE for dealing with expressions as arguments
  o Compile-time type checking for arguments of SQL built-ins COALESCE, GREATEST, LEAST, NVL, NVL2, IIF and CASE
  o Supported OFFSET and LIMIT clauses in SQL hints
  o Absorption rules added for conjunction and disjunction, enabling more optimization opportunities
  o Added BIGINT SQL type
  o Open types in messages are now closed
  o Enhanced visibility rules for aliases in SELECT renamings, which allows for references to such aliases in other subsequent clauses
  o Added syntactic error for multiple primary key SQL declarations in the same table
  o Added string to datetime datatype conversion for date without time
  o Support for VALUES in local and global SQL views
  o GROUP BY queries with non-grouped attributes in the SELECT list but determined by groping attributes are accepted
  o With nulls enabled, set operations INTERSECT and EXCEPT (both DISTINCT and ALL) behave as SQL standard dictates. With nulls disabled, more efficient compilations are delivered
  o Differential semi-naive optimization for linear recursion (/optimize_sn on) is automatically disabled in non-linear rule bodies 
  o New commands:
    - /cls Clear the console screen by emitting ANSI escape sequences. This requires a console with ANSI support enabled
    - /sql_semantic_check_data Display whether SQL semantic check based on actual data is enabled (disabled by default). If enabled, data from tables are used for consistency checks and query simplifications
    - /sql_semantic_check_data Switch Enable or disable actual data for SQL semantic check (on or off, resp.) If enabled, data from tables are used for consistency checks and query simplifications

* Changes:
  o SQL queries that include FROM dual or are FROM?less are now displayed without a FROM clause on DBMS's that support it; in particular, for DES
  o SQL queries that include a top-N clause are now displayed with its simplified version SELECT TOP N on DBMS's that support it; in particular, for DES
  o String types for constants in error messages are not limited to the length of the constant
  o Under strong type casting, the type of a Datalog predicate cannot be changed if its data does not exactly match with the new types
  o The comparison built-ins = and \= respectively use Prolog's =:= and =\= to evaluate its arithmetic arguments, providing a more homogeneous behavior for different Prolog systems. In particular, a Datalog query such as 1=1.0 succeeds for both SICStus and SWI-Prolog host systems

* Fixed bugs:
  o Some translations of projections to canonical RA in the compilation of SQL queries were omitted. This might lead to compilation errors
  o The operator != was not accepted in DRC
  o Type conversion failed in some corner cases involving disjunctions ('$eq' was not treated as an infix comparison) and string types
  o DWIM could raise an exception in presence of restricted predicates
  o TOP-N semantics was inadvertently changed in version 6.8 for non-open goals. This affected in particular to compilations of SQL EXISTS queries
  o SQL hints should not be issued for TAPI commands except for /parse and /mparse, similar to what semantic errors behave
  o Missing documentation for the modifier ALL of INTERSECT and EXCEPT multiset SQL operations
  o A semantic SQL translation might not terminate because of switched arguments
  o Upon exceptions on an external database, integrity constraint checking might be disabled
  o Numeric types in output schema of queries now identify correct types for constants
  o When detecting tautological conditions and translating to constraints during SQL semantic checking, type casting was enabled in type inference, but it should not have been.
  o Inconsistency checking with type casting enabled may lead to miss integers with floats
  o Opening an external connection (such as SQL Server) may lead to a couple of rows in the dual table, instead just one
  o SQL semantic warning GROUP BY with singleton groups submitted a false positive in two scenarios: for primary keys of more than one column, and cross auto joins. This also led to false positive for replacing GROUP BY by DISTINCT
  o Some SQL queries with ALL/ANY modifiers over subqueries with aggregates raised an exception
  o Aggregates computed in the SELECT list may miss solutions
  o In RA, a rename applied to a sort lead to an unknown column
  o System error exception fixed for SQL query and correlated subquery with ALL and grouping in both
  o Fixed overloaded datetime_sub with type casting on
  o Fixed exception for recompilations of views when switching autocast mode
  o Fixed internal error in derived table with COUNT(*) correlated through an expression of an outer attribute
  o Uncorrelated variable in SQL subquery with DISTINCT
  o Replacing a script variable with the same name as a static predicate led to an exception
  o A nested rename in RA might caused input processing error
  o Grouping involving the dual table may return incorrect results
  o An expression involving a scalar SELECT subquery with aggregates led to syntactic error (aggregate in a WHERE)
  o If ORDER BY contained a non-grouped attribute shared with the SELECT list, the error pointed to the first clause instead to the second one
  o Circular aliases may cycle
  o Some relation aliases was missed in subqueries
  o Offset collapsed duplicated entries and thus, in general, less rows than expected were returned
  o From-less SELECT ... INTO statements raised a syntactic error
  o Arithmetic arguments in Datalog string functions were not evaluated
  o A natural full join with no common attributes raised an error
  o Double escape char at the end of the string was misinterpreted
  o In an SQL condition, AND combined with NOT IN raised an error
  o An alias reused in the SELECT list as a single argument raised an error
  o Some remarks inside SQL statements raised a syntax error
  o EXCEPT ALL queries with disabled duplicates did not terminate because different nulls were not identified as a single value in its translation to Datalog's group_by
  o An EXCEPT query involving nulls did not distinguish them as equal values
  o Some constant arguments were passed as positional arguments to GROUP BY
  o The command /drop_tables did not terminate when there were dependency cycles between tables through referential integrity constraints
  o Some types were not closed rightly in view definitions, dealing to incorrect announced types
  o Comparison between string types of different lengths may lead to error even when type casting was enabled
  o Renamings in RA queries might pollute further queries
  o Arguments in ORDER BY (SQL and RA) might be missed with positional
  o An aggregate over a recursive predicate under semi-naive differential optimization might lead to non-termination
  o The function/predicate IIF assumed true the condition for comparisons with constants
